]> 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:10:24 +0000 (01:10 -0700)
commit05c5c9370537ff2fc8d37629beb6ae8e354500c8
tree155c91f5effb8ca8fb902243889b4ab14cf49009
parent775385df0e954f8cf9b5046bebc8e40ce26e601b
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]