fivem
fivem copied to clipboard
tweak(core/sbac): cleanup code, return on read failing, add ReadBitsSafe
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.