mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
e5324a2484
Emitting errors is fairly expensive, to the point that parsing a file with a huge number of invalid tags can take seconds. Generating ten thousand errors is unlikely to help anybody, but constitutes a potential DOS vector.
13 lines
259 B
PHP
13 lines
259 B
PHP
--TEST--
|
|
Bug #77753 (Heap-buffer-overflow in php_ifd_get32s)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
|
|
--FILE--
|
|
<?php
|
|
@var_dump(exif_read_data(__DIR__."/bug77753.tiff"));
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
bool(false)
|
|
DONE
|