]> granicus.if.org Git - php/commit
Fix #72494: imagecropauto out-of-bounds access
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 25 Oct 2016 12:19:36 +0000 (14:19 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 25 Oct 2016 12:29:48 +0000 (14:29 +0200)
commitcd13d0260a9327af541176235e76cdef8af3a27a
treea399cf5eb58ea8f27c81b0e96cc347285528902e
parent4f5a755b9d08abafe06152b815294c2fff03927a
Fix #72494: imagecropauto out-of-bounds access

This issue has actually already been fixed with commit 46f2c690. We're
adding a regression test and a NEWS entry, and also port the fix in
gdImageCropThreshold() from libgd:
  * <https://github.com/libgd/libgd/commit/b347e034>
  * <https://github.com/libgd/libgd/commit/46f2c690>
NEWS
ext/gd/libgd/gd_crop.c
ext/gd/tests/bug72494.phpt [new file with mode: 0644]