]> granicus.if.org Git - php/commit
Fix #79615: Wrong GIF header written in GD GIFEncode
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 22 May 2020 07:11:28 +0000 (09:11 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 22 May 2020 07:15:41 +0000 (09:15 +0200)
commitd4bd6fb491ccaf70006d6f671755126b47a71bcb
treeddf3950ecdc0e71d4d9b0e4f2d892420ee7a6a31
parent85ac5643ff07e07e40df89510726e1bc66e6a50b
Fix #79615: Wrong GIF header written in GD GIFEncode

The color resolution is expected in bits 4-6 of the packed fields byte
of the logical screen descriptor (byte 10 of the GIF data stream),
according to the specification[1], section 18.

[1] <https://www.w3.org/Graphics/GIF/spec-gif89a.txt>
NEWS
ext/gd/libgd/gd_gif_out.c
ext/gd/tests/bug79615.phpt [new file with mode: 0644]