summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_parser.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-12-17 17:06:58 +0100
committerAnatol Belski <ab@php.net>2017-01-17 09:42:45 +0100
commit761cc2b766e040452f026a3b4c3b2c71bcbfb3dd (patch)
treed73d324624968305b1cfa44d5ed10b1a1d68da1d /sapi/phpdbg/phpdbg_parser.c
parent564a161258e53c05e1d0b02a16568e24d4da3b51 (diff)
downloadphp-git-761cc2b766e040452f026a3b4c3b2c71bcbfb3dd.tar.gz
Fix #73869: Signed Integer Overflow gd_io.c
GD2 stores the number of horizontal and vertical chunks as words (i.e. 2 byte unsigned). These values are multiplied and assigned to an int when reading the image, what can cause integer overflows. We have to avoid that, and also make sure that either chunk count is actually greater than zero. If illegal chunk counts are detected, we bail out from reading the image. (cherry picked from commit 5b5d9db3988b829e0b121b74bb3947f01c2796a1) (cherry picked from commit d2274b01cbbadf5516b3ea87ad76fbae18834007)
Diffstat (limited to 'sapi/phpdbg/phpdbg_parser.c')
0 files changed, 0 insertions, 0 deletions