]> granicus.if.org Git - php/commit
Fix #77973: Uninitialized read in gdImageCreateFromXbm
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 6 May 2019 08:18:51 +0000 (10:18 +0200)
committerStanislav Malyshev <stas@php.net>
Mon, 27 May 2019 23:11:32 +0000 (16:11 -0700)
commited6dee9a198c904ad5e03113e58a2d2c200f5184
tree5d7e56a08d15c697c7f879c62fe1d8c6d20ba11d
parentf80ad18afae2230c2c1802c7d829100af646874e
Fix #77973: Uninitialized read in gdImageCreateFromXbm

We have to ensure that `sscanf()` does indeed read a hex value here,
and bail out otherwise.
ext/gd/libgd/xbm.c
ext/gd/tests/bug77973.phpt [new file with mode: 0644]