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

Go: Two fixes to upper bound checks in "incorrect integer conversion" query #14606

Merged
merged 9 commits into from
Oct 27, 2023

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Oct 26, 2023

Two bugs fixed, with corresponding test cases, plus some miscellaneous refactoring to make some of the code a bit nicer to read and to try to avoid doing integer arithmetic with floats (because CodeQL integers are signed 32-bit integers) above the level where that is precise.

@owen-mc owen-mc requested a review from a team as a code owner October 26, 2023 16:12
@github-actions github-actions bot added the Go label Oct 26, 2023
@owen-mc
Copy link
Contributor Author

owen-mc commented Oct 26, 2023

Performance testing showed no significant change

smowton
smowton previously approved these changes Oct 27, 2023
@owen-mc owen-mc force-pushed the go/incorrect-integer-conversion-fixes branch from fe2d463 to 3c9783c Compare October 27, 2023 10:12
@owen-mc owen-mc changed the title Go: Some fixes to "incorrect integer conversion" query Go: Two fixes to upper bound checks in "incorrect integer conversion" query Oct 27, 2023
@owen-mc owen-mc merged commit d534c93 into github:main Oct 27, 2023
14 checks passed
@owen-mc owen-mc deleted the go/incorrect-integer-conversion-fixes branch October 27, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants