]> granicus.if.org Git - php/commit
Fix #78620: Out of memory error
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 3 Oct 2019 17:23:05 +0000 (19:23 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 4 Oct 2019 07:08:01 +0000 (09:08 +0200)
commitabaf9a76dc933f4d1f2ff3591ced81d4d6dcb652
tree76d47a75443a98e438f4c31c49f7f64a8164bec4
parenta6d219630c4128a124f3d9a2e7ca97afb92d5d47
Fix #78620: Out of memory error

The integer addition in `ZEND_MM_ALIGNED_SIZE_EX` can overflow, what we
have to catch early.
NEWS
Zend/zend_alloc.c
ext/standard/tests/strings/wordwrap_memory_limit.phpt
ext/standard/tests/strings/wordwrap_memory_limit_win32.phpt [new file with mode: 0644]