cvs: gd /libgd gdxpm.c

From: Date: Thu, 04 Jan 2007 01:24:00 +0000
Subject: cvs: gd /libgd gdxpm.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-63@lists.php.net to get a copy of this message
pajoye Thu Jan 4 01:24:00 2007 UTC Modified files: /gd/libgd gdxpm.c Log: - #14, some more sanitiy check http://cvs.php.net/viewvc.cgi/gd/libgd/gdxpm.c?r1=1.8&r2=1.9&diff_format=u Index: gd/libgd/gdxpm.c diff -u gd/libgd/gdxpm.c:1.8 gd/libgd/gdxpm.c:1.9 --- gd/libgd/gdxpm.c:1.8 Wed Apr 5 15:54:20 2006 +++ gd/libgd/gdxpm.c Thu Jan 4 01:24:00 2007 @@ -47,6 +47,9 @@ return 0; number = image.ncolors; + if (overflow2(sizeof (int), number)) { + return 0; + } colors = (int *) gdMalloc (sizeof (int) * number); if (colors == NULL) return (0);

« previous php.gd.cvs (#63) next »