bug76130.phpt 573 B

1234567891011121314151617181920
  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. --SKIPIF--
  10. <?php
  11. if (!extension_loaded('exif')) die('skip exif extension not available');
  12. ?>
  13. --FILE--
  14. <?php
  15. exif_read_data(__DIR__ . '/bug76130_1.jpg');
  16. exif_read_data(__DIR__ . '/bug76130_2.jpg');
  17. ?>
  18. ===DONE===
  19. --EXPECT--
  20. ===DONE===