]> granicus.if.org Git - php/commit
Fix #79877: getimagesize function silently truncates after a null byte
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 21 Jul 2020 09:07:43 +0000 (11:07 +0200)
committerStanislav Malyshev <stas@php.net>
Mon, 3 Aug 2020 08:09:44 +0000 (01:09 -0700)
commit4d2560dd6a115dee81821e2b0fe6751e61f5c2c0
treeafb582043045c43c27fc18974aaa4a350c98c781
parent9c3171f019d07b4271c5929478dddba0861e92af
Fix #79877: getimagesize function silently truncates after a null byte

We have to check for NUL bytes if `getimagesize()` has been called.
ext/standard/image.c
ext/standard/tests/image/bug79877.phpt [new file with mode: 0644]