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

Fix #72146: Integer overflow on substr_replace #7240

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 14, 2021

Adding two zend_longs may overflow, and casting size_t to
zend_long may truncate; we can avoid this here by enforcing unsigned
arithmetic.

Adding two `zend_long`s may overflow, and casting `size_t` to
`zend_long` may truncate; we can avoid this here by enforcing unsigned
arithmetic.
@cmb69 cmb69 added the Bug label Jul 14, 2021
@cmb69 cmb69 closed this in 33f8dfb Jul 15, 2021
@cmb69 cmb69 deleted the cmb/72146 branch July 15, 2021 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants