com php-src: Fix buffer underflow in gd_gif_in.c: ext /gd/libgd/gd_gif_in.c

From: Date: Wed, 19 Jun 2019 13:41:45 +0000
Subject: com php-src: Fix buffer underflow in gd_gif_in.c: ext /gd/libgd/gd_gif_in.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106912@lists.php.net to get a copy of this message
Commit: 2a9fc310211eb0ed5ee2b2954a57c49c17c7e6a7 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 19 Jun 2019 15:41:45 +0200 Parents: c10cb47b5f0a4d58d37b1974c993f5a3c09b1997 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2a9fc310211eb0ed5ee2b2954a57c49c17c7e6a7 Log: Fix buffer underflow in gd_gif_in.c This has been fixed upstream in https://github.com/libgd/libgd/commit/939d49a3a9d1cbcd2a37cea9eac9f9e5e9f9de78. Changed paths: M ext/gd/libgd/gd_gif_in.c Diff: diff --git a/ext/gd/libgd/gd_gif_in.c b/ext/gd/libgd/gd_gif_in.c index ee987e8..1f69723 100644 --- a/ext/gd/libgd/gd_gif_in.c +++ b/ext/gd/libgd/gd_gif_in.c @@ -381,7 +381,7 @@ GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroD if (flag) { scd->curbit = 0; scd->lastbit = 0; - scd->last_byte = 0; + scd->last_byte = 2; scd->done = FALSE; return 0; }

« previous php.cvs (#106912) next »