Skip to content

fix int overflow#5369

Merged
muglug merged 1 commit intovimeo:masterfrom
orklah:max-int-to-float
Mar 12, 2021
Merged

fix int overflow#5369
muglug merged 1 commit intovimeo:masterfrom
orklah:max-int-to-float

Conversation

@orklah
Copy link
Copy Markdown
Collaborator

@orklah orklah commented Mar 11, 2021

When int multiplication overflows PHP_INT_MAX, the resulting type is a float. It makes Psalm crash. This fix #5363

@muglug muglug merged commit 57234ab into vimeo:master Mar 12, 2021
@muglug
Copy link
Copy Markdown
Collaborator

muglug commented Mar 12, 2021

thanks!

pull bot pushed a commit to IMULMUL/psalm that referenced this pull request Mar 12, 2021
This was referenced Mar 15, 2021
This was referenced Mar 17, 2021
@orklah orklah deleted the max-int-to-float branch September 14, 2021 17:39
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.

Psalm 4.6.2 crashed due to an uncaught Throwable

2 participants