Fix #74435: Buffer over-read into uninitialized memory
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Jun 2017 14:45:42 +0000 (16:45 +0200)
committerStanislav Malyshev <stas@php.net>
Wed, 5 Jul 2017 02:00:57 +0000 (19:00 -0700)
commit8dc4f4dc9e44d1cbfe4654aa6e0dc27c94913938
tree89f1e07fb501ad25600634e2ffa4c83310568de1
parent5f8380d33e648964d2d5140f329cf2d4c443033c
Fix #74435: Buffer over-read into uninitialized memory

The stack allocated color map buffers were not zeroed before usage, and
so undefined palette indexes could cause information leakage.
ext/gd/libgd/gd_gif_in.c
ext/gd/tests/bug74435.gif [new file with mode: 0644]
ext/gd/tests/bug74435.phpt [new file with mode: 0644]