Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

AvarianKnight
Copy link
Contributor

@AvarianKnight AvarianKnight commented Sep 1, 2023

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
Copy link
Contributor Author

Closing this as I'm not quite sure if this is necessary (or even safe)

@AvarianKnight AvarianKnight deleted the fix/sbac_buffer_overflow branch June 4, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants