]> granicus.if.org Git - php/commit
Avoid signed integer overflow in string offset check
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 19 Dec 2019 10:46:14 +0000 (11:46 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 19 Dec 2019 10:47:50 +0000 (11:47 +0100)
commit527ad1d80ce3a24f89b71fe3998f2f6314146029
tree1452956d3a34ec785c4365c12d5e47c4b8af6cbc
parente4b12fc62a25563dd60fa4f29ff0267375c70ac4
Avoid signed integer overflow in string offset check

Cast to size_t before performing operations instead of afterwards.
Zend/tests/string_offset_int_min_max.phpt [new file with mode: 0644]
Zend/zend_execute.c