History log of /PHP-7.4/ext/standard/tests/strings/bug72146.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 33f8dfb1 14-Jul-2021 Christoph M. Becker

Fix #72146: Integer overflow on substr_replace

Adding two `zend_long`s may overflow, and casting `size_t` to
`zend_long` may truncate; we can avoid this here by enforcing unsigned
ar

Fix #72146: Integer overflow on substr_replace

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.

Closes GH-7240.

show more ...