summaryrefslogtreecommitdiff
path: root/src/gd_color_match.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix #497: gdImageColorMatch Out Of Bounds Write on Heap (CVE-2019-6977)wilson chen2019-12-201-3/+2
| | | | | | Fixed CVE-2019-6977 and add corresponding testcase. Original patch by Christoph M. Bechker <cmbecker69@gmx.de> https://gist.github.com/cmb69/1f36d285eb297ed326f5c821d7aafced
* Document all BGD_DECLARE'd functionsChristoph M. Becker2016-07-201-2/+4
| | | | | We add only minimal documentation comments for now, but at least that lets Natural Docs add the function prototypes to the documentation.
* fix implicit memset declMike Frysinger2013-04-221-0/+1
| | | | | | | | | Need to include string.h to get the memset prototype: gd_color_match.c: In function 'gdImageColorMatch': gd_color_match.c:32:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default] memset (buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal ); ^
* Merge gdImageColorMatch from php-libgdOndřej Surý2013-04-221-0/+60