fivem icon indicating copy to clipboard operation
fivem copied to clipboard

tweak(core/sbac): cleanup code, return on read failing, add ReadBitsSafe

Open AvarianKnight opened this issue 1 year ago • 0 comments

This is a cleanup of PR #2161

This makes HandlePacket properly fail when a buffer read fails, and adds ReadBitsSafe which will check to make sure the length is greater then 0 & we won't read over m_maxBits before allocating the vector.

AvarianKnight avatar Sep 01 '23 08:09 AvarianKnight