com php-src: Same issue as #72926 in another place.: ext/exif/exif.c

From: Date: Thu, 15 Sep 2016 07:55:58 +0000
Subject: com php-src: Same issue as #72926 in another place.: ext/exif/exif.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94553@lists.php.net to get a copy of this message
Commit: 88d26623b2e55becc1d4b3e7944ebb1a0c1bd908 Author: Stanislav Malyshev <stas@php.net> Sun, 4 Sep 2016 20:49:34 -0700 Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 09:55:58 +0200 Parents: b570c506815212c7702bfb0046e87d541e171eb7 Branches: PHP-5.6.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=88d26623b2e55becc1d4b3e7944ebb1a0c1bd908 Log: Same issue as #72926 in another place. Bugs: https://bugs.php.net/72926 Changed paths: M ext/exif/exif.c Diff: diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 657a2cc..8b0e34c 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3734,8 +3734,11 @@ static int exif_process_IFD_in_TIFF(image_info_type *ImageInfo, size_t dir_offse fgot = php_stream_read(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size); if (fgot < ImageInfo->Thumbnail.size) { EXIF_ERRLOG_THUMBEOF(ImageInfo) + efree(ImageInfo->Thumbnail.data); + ImageInfo->Thumbnail.data = NULL; + } else { + exif_thumbnail_build(ImageInfo TSRMLS_CC); } - exif_thumbnail_build(ImageInfo TSRMLS_CC); } } }

« previous php.cvs (#94553) next »