diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-08-13 16:02:10 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-08-13 16:14:34 +0200 |
commit | 82df4e263886a0da21a00c98189649287666ba5c (patch) | |
tree | e77ee1fbcfcc8fc397b94cf9bcccafd9b73c78ab /ext/json/json.c | |
parent | ae3b2078eac226c61bc325527e607ad275936d22 (diff) | |
download | php-git-82df4e263886a0da21a00c98189649287666ba5c.tar.gz |
Fix #72278: getimagesize returning FALSE on valid jpg
getimagesize() is rather strict about the length of the marker payload data,
and fails if there are extraneous bytes before the next marker. Only a very
special case reported in bug #13213 is catered to.
libjpeg is rather resilient to such corrupted JPEG files, and raises a
recoverable error in this case. Other image processors also accept such
JPEG files, so we adapt getimagesize() to skip (but warn about) such
extraneous bytes.
Diffstat (limited to 'ext/json/json.c')
0 files changed, 0 insertions, 0 deletions