summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-13 16:02:10 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-08-13 16:14:34 +0200
commit82df4e263886a0da21a00c98189649287666ba5c (patch)
treee77ee1fbcfcc8fc397b94cf9bcccafd9b73c78ab /ext/json/json.c
parentae3b2078eac226c61bc325527e607ad275936d22 (diff)
downloadphp-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