bug77269.phpt 418 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #77269 (Potential unsigned underflow in gdImageScale)
  3. --EXTENSIONS--
  4. gd
  5. --SKIPIF--
  6. <?php
  7. if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
  8. ?>
  9. --INI--
  10. memory_limit=2G
  11. --FILE--
  12. <?php
  13. $im = imagecreate(2**28, 1);
  14. imagescale($im, 1, 1, IMG_TRIANGLE);
  15. ?>
  16. --EXPECTF--
  17. Warning: imagescale():%S Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
  18. in %s on line %d