Skip to content

Conversation

@hyongtao-code
Copy link
Contributor

@hyongtao-code hyongtao-code commented Dec 25, 2025

The previous message did not match the actual overflow check and omitted the bitfield size, making it misleading. Update the message to reflect the correct condition and report all relevant values.

The previous message did not match the actual overflow check and omitted
the bitfield size, making it misleading. Update the message to reflect the
correct condition and report all relevant values.

Signed-off-by: Yongtao Huang <[email protected]>
@aisk
Copy link
Contributor

aisk commented Dec 25, 2025

Maybe we can add a test to check the message to ensure that we don't break it up in the future?

@hyongtao-code
Copy link
Contributor Author

Maybe we can add a test to check the message to ensure that we don't break it up in the future?

Thanks for the review! The test case has now been added.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

I have a suggestion for test example.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

I think the message should be updated too.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 25, 2025
@hyongtao-code
Copy link
Contributor Author

I think the message should be updated too.

Updated, thanks for the feedback.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

Sorry for misleading. I meant the error message tested in the test should be updated. Otherwise the test will fail.

@hyongtao-code
Copy link
Contributor Author

Oh, sorry for my mistake. Updated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants