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

Avoid parser bugs for very large negative numbers #1580

Merged
merged 9 commits into from
Sep 19, 2021

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Sep 18, 2021

This is another take on the problem #1574, born after discussion in #1579.

Here we completely dodge any parser issues by refusing to increment -9223372036854775807 which is -PHP_INT_MAX.

If we try to increment -PHP_INT_MAX we'll get a very fully looking contraption from PHP Parser:

-(-9223372036854775807-1)

Fixes #1574

Related: php/doc-en@b3e793a

@sanmai sanmai changed the title Avoid around parser bugs for very large negative numbers Avoid parser bugs for very large negative numbers Sep 18, 2021
@sanmai sanmai enabled auto-merge (squash) September 19, 2021 10:49
@sanmai
Copy link
Member Author

sanmai commented Sep 19, 2021

@maks-rafalko It looks like there's a requirement for CI jobs that no longer run, or run under a different name. Can you see?

@maks-rafalko
Copy link
Member

that's very strange and looks like some bug TBH in GH Actions. I disabled them for now in required checks

@maks-rafalko maks-rafalko merged commit 353ebc6 into infection:master Sep 19, 2021
@maks-rafalko
Copy link
Member

Thank you @sanmai

@sanmai sanmai deleted the pr/2021-09/fix-1574-2 branch September 19, 2021 11:06
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.

Library internal exception, when integer boundry values are present in the source code
2 participants