[php-src] PHP-8.5.9: libgd patch for CVE-2026-9672

From: Date: Tue, 28 Jul 2026 12:56:52 +0000
Subject: [php-src] PHP-8.5.9: libgd patch for CVE-2026-9672
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140269@lists.php.net to get a copy of this message
Author: Ilija Tovilo (iluuu1994) Pusher: edorian Date: 2026-07-28T10:34:54+02:00 Commit: https://github.com/php/php-src/commit/75f4e4cc3d5b0c2047939d39b87154e727e41760 Raw diff: https://github.com/php/php-src/commit/75f4e4cc3d5b0c2047939d39b87154e727e41760.diff libgd patch for CVE-2026-9672 Patch by Pierre Joye (pierrejoye). 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 0204c4158db4..14c27f3293cc 100644 --- a/ext/gd/libgd/gd_gif_in.c +++ b/ext/gd/libgd/gd_gif_in.c @@ -452,7 +452,7 @@ LWZReadByte_(gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, i sd->table[1][i] = i; } for (; i < (1<<MAX_LWZ_BITS); ++i) - sd->table[0][i] = sd->table[1][0] = 0; + sd->table[0][i] = sd->table[1][i] = 0; sd->sp = sd->stack; @@ -496,6 +496,8 @@ LWZReadByte_(gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, i if (count != 0) return -2; + + return -2; } incode = code; @@ -562,7 +564,7 @@ ReadImage(gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap) int v; int xpos = 0, ypos = 0, pass = 0; int i; - LZW_STATIC_DATA sd; + LZW_STATIC_DATA sd = {0}; /*

« previous php.cvs (#140269) next »