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 <yongtaoh2022@gmail.com>
@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.

Co-authored-by: AN Long <aisk@users.noreply.github.com>
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.

@serhiy-storchaka serhiy-storchaka merged commit b9a4806 into python:main Dec 25, 2025
46 checks passed
@miss-islington-app
Copy link

Thanks @hyongtao-code for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 25, 2025
…flow (pythonGH-143165)

(cherry picked from commit b9a4806)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
@miss-islington-app
Copy link

Sorry, @hyongtao-code and @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker b9a48064306229287d7211e9510f578065e457fc 3.13

@bedevere-app
Copy link

bedevere-app bot commented Dec 25, 2025

GH-143176 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Dec 25, 2025
serhiy-storchaka pushed a commit that referenced this pull request Dec 25, 2025
…rflow (GH-143165) (GH-143176)

(cherry picked from commit b9a4806)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport to 3.13 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants