Skip to content

fix oob bug in malformed header#129

Open
krypdkat wants to merge 1 commit into
mainfrom
features/fix-oob-on-malformed-header
Open

fix oob bug in malformed header#129
krypdkat wants to merge 1 commit into
mainfrom
features/fix-oob-on-malformed-header

Conversation

@krypdkat

Copy link
Copy Markdown
Contributor

No description provided.

@krypdkat krypdkat assigned krypdkat and unassigned krypdkat Jul 24, 2026
Comment thread connection.cpp

int QubicConnection::receiveAllDataOrThrowException(uint8_t* buffer, int sz)
{
if (sz < 0 || sz > (int)sizeof(mBuffer)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there should be a more appropriate place for this check because the checked mBuffer is not used in the code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then it should be 0xffffff, can mBuffer be removed btw?

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