]> 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>
Sun, 2 Aug 2020 22:33:24 +0000 (15:33 -0700)
commitff577b04c0d250473a0ef46f8e332960fec3ca2c
tree0f18df95ba2ba05ad16d0b785460069f6c551737
parent7355ab81763a3d6a04ac11660e6a16d58838d187
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]