bug76130.phpt 500 B

123456789101112131415161718
  1. --TEST--
  2. Bug #76130 (Heap Buffer Overflow (READ: 1786) in exif_iif_add_value)
  3. --DESCRIPTION--
  4. This test is meant to exhibit memory issues with the `-m` option. Since a lot of
  5. notices and warnings are to be expected anyway, we suppress these, since the are
  6. not relevant for this test.
  7. --INI--
  8. error_reporting=E_ALL & ~E_WARNING & ~E_NOTICE
  9. --EXTENSIONS--
  10. exif
  11. --FILE--
  12. <?php
  13. exif_read_data(__DIR__ . '/bug76130_1.jpg');
  14. exif_read_data(__DIR__ . '/bug76130_2.jpg');
  15. ?>
  16. ===DONE===
  17. --EXPECT--
  18. ===DONE===