cvs: php-src /ext/gd/libgd gdxpm.c
| From: | Ilia Alshanetsky | Date: | Thu, 16 Jun 2005 22:50:36 +0000 |
| Subject: | cvs: php-src /ext/gd/libgd gdxpm.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32332@lists.php.net to get a copy of this message | ||
iliaa Thu Jun 16 18:50:36 2005 EDT
Modified files:
/php-src/ext/gd/libgd gdxpm.c
Log:
Fixed memory corruption.
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gdxpm.c?r1=1.7&r2=1.8&ty=u
Index: php-src/ext/gd/libgd/gdxpm.c
diff -u php-src/ext/gd/libgd/gdxpm.c:1.7 php-src/ext/gd/libgd/gdxpm.c:1.8
--- php-src/ext/gd/libgd/gdxpm.c:1.7 Sun Dec 28 15:11:08 2003
+++ php-src/ext/gd/libgd/gdxpm.c Thu Jun 16 18:50:32 2005
@@ -46,10 +46,10 @@
buf[0] = image.colorTable[i].c_color[1];
red = strtol(buf, NULL, 16);
- buf[0] = image.colorTable[i].c_color[3];
+ buf[0] = image.colorTable[i].c_color[2];
green = strtol(buf, NULL, 16);
- buf[0] = image.colorTable[i].c_color[5];
+ buf[0] = image.colorTable[i].c_color[3];
blue = strtol(buf, NULL, 16);
break;