]> granicus.if.org Git - php/commit
Fix #72696: imagefilltoborder stackoverflow on truecolor images
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 25 Oct 2016 11:23:16 +0000 (13:23 +0200)
committerAnatol Belski <ab@php.net>
Tue, 1 Nov 2016 12:07:37 +0000 (13:07 +0100)
commit5693474997b5a804be307583fb7bc3cfcdd50aec
tree01a4150ca25e45236d510168f5762fde6b09968d
parent1b5543b8ab22b85c14546649057475fce2083fbd
Fix #72696: imagefilltoborder stackoverflow on truecolor images

We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.

(cherry picked from commit 863d37ea66d5c960db08d6f4a2cbd2518f0f80d1)
ext/gd/libgd/gd.c
ext/gd/tests/bug72696.phpt [new file with mode: 0644]