diff options
author | Ondřej Surý <ondrej@sury.org> | 2014-10-17 16:20:58 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2014-10-17 16:20:58 +0200 |
commit | 1dc5de7731d1bc41002f9b58f798e93f393e6f08 (patch) | |
tree | 83f64795b16c566dec2b0019ca8b2b3c2677513d /ext/exif/tests/bug68113.phpt | |
parent | 04b664c46aafc46bb3030d3bf06eb5f0b38c2b49 (diff) | |
download | php-upstream/5.6.2+dfsg.tar.gz |
New upstream version 5.6.2+dfsgupstream/5.6.2+dfsg
Diffstat (limited to 'ext/exif/tests/bug68113.phpt')
-rw-r--r-- | ext/exif/tests/bug68113.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/exif/tests/bug68113.phpt b/ext/exif/tests/bug68113.phpt new file mode 100644 index 000000000..0fa4c4aca --- /dev/null +++ b/ext/exif/tests/bug68113.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #68113 (Heap corruption in exif_thumbnail()) +--SKIPIF-- +<?php +extension_loaded("exif") or die("skip need exif"); +?> +--FILE-- +<?php +var_dump(exif_thumbnail(__DIR__."/bug68113.jpg")); +?> +Done +--EXPECTF-- +Warning: exif_thumbnail(bug68113.jpg): File structure corrupted in %s/bug68113.php on line 2 + +Warning: exif_thumbnail(bug68113.jpg): Invalid JPEG file in %s/bug68113.php on line 2 +bool(false) +Done
\ No newline at end of file |