summaryrefslogtreecommitdiff
path: root/ext/exif/tests/bug71534.phpt
blob: 1f5fc9db04f6e829ea22542a91a519e78f77c07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #71534 (Type confusion in exif_read_data() leading to heap overflow in debug mode)
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
--FILE--
<?php
// This is kinda bad, I know! But, this generates about 200+ warnings due to its
// broken TIFF format
var_dump(@exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . 'bug71534.tiff') === false);
?>
--EXPECT--
bool(true)