]> granicus.if.org Git - php/commit
Fixed bug #75571: Potential infinite loop in gdImageCreateFromGifCtx
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 29 Nov 2017 17:52:33 +0000 (18:52 +0100)
committerStanislav Malyshev <stas@php.net>
Tue, 2 Jan 2018 03:51:26 +0000 (19:51 -0800)
commit8d6e9588671136837533fe3785657c31c5b52767
treead70d2135577e6793eba26819579e692b80baf16
parent73ca9b37731dd9690ffd9706333b17eaf90ea091
Fixed bug #75571: Potential infinite loop in gdImageCreateFromGifCtx

Due to a signedness confusion in `GetCode_` a corrupt GIF file can
trigger an infinite loop.  Furthermore we make sure that a GIF without
any palette entries is treated as invalid *after* open palette entries
have been removed.
ext/gd/libgd/gd_gif_in.c
ext/gd/tests/bug75571.gif [new file with mode: 0644]
ext/gd/tests/bug75571.phpt [new file with mode: 0644]