com php-src: Make test case even more resilient: ext/exif/tests/bug73737.phpt
| From: | Christoph Michael Becker | Date: | Wed, 04 Jan 2017 10:46:35 +0000 |
| Subject: | com php-src: Make test case even more resilient: ext/exif/tests/bug73737.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96531@lists.php.net to get a copy of this message | ||
Commit: 0c10ddb85107fa0564bf727d306adf7e74531247
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 4 Jan 2017 11:46:35 +0100
Parents: c8aa6f3a9a3d2c114d0c5e0c9fdd0a465dbb54a5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c10ddb85107fa0564bf727d306adf7e74531247
Log:
Make test case even more resilient
The
components value may obviously be negative, so we have to cater
to that.
Changed paths:
M ext/exif/tests/bug73737.phpt
Diff:
diff --git a/ext/exif/tests/bug73737.phpt b/ext/exif/tests/bug73737.phpt
index 149e3e3..0086065 100644
--- a/ext/exif/tests/bug73737.phpt
+++ b/ext/exif/tests/bug73737.phpt
@@ -8,7 +8,7 @@ Bug #73737 (Crash when parsing a tag format)
var_dump($exif);
?>
--EXPECTF--
-Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Illegal components(%d) in
%s on line %d
+Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Illegal components(%i) in
%s on line %d
Warning: exif_thumbnail(bug73737.tiff): Error in TIFF: filesize(x0030) less than start of IFD
dir(x10102) in %s line %d
bool(false)