mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
18 lines
621 B
PHP
18 lines
621 B
PHP
--TEST--
|
|
Bug #78910: Heap-buffer-overflow READ in exif (OSS-Fuzz #19044)
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(exif_read_data('data:image/jpg;base64,TU0AKgAAAAwgICAgAAIBDwAEAAAAAgAAACKSfCAgAAAAAEZVSklGSUxN'));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Notice: exif_read_data(): Read from TIFF: tag(0x927C, MakerNote): Illegal format code 0x2020, switching to BYTE in %s on line %d
|
|
|
|
Warning: exif_read_data(): Process tag(x927C=MakerNote): Illegal format code 0x2020, suppose BYTE in %s on line %d
|
|
|
|
Warning: exif_read_data(): IFD data too short: 0x0000 offset 0x000C in %s on line %d
|
|
|
|
Warning: exif_read_data(): Invalid TIFF file in %s on line %d
|
|
bool(false)
|