summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-09-03 19:46:38 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-09-03 19:50:42 +0200
commitd58224136801ce93b013079557d1de4d068b9b99 (patch)
treefc31b13ed54d7b898d570063c0b170e13f7412b3 /sapi/phpdbg/phpdbg_prompt.c
parent9513187deec82ffb2f56b86ce5f940d1fb5329f9 (diff)
downloadphp-git-d58224136801ce93b013079557d1de4d068b9b99.tar.gz
Fix #67325: imagetruecolortopalette: white is duplicated in palette
gdImageTrueColorToPalette() is sometimes wasteful by putting multiple white color entries into the palette. This is caused by an obvious typo, where to avoid a division by zero when `total` is zero, `count` is checked instead of `total`. We fix this issue to improve the quality of the color quantization. Cf. <https://github.com/libgd/libgd/commit/24b4550f>
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
0 files changed, 0 insertions, 0 deletions