Patch bundled-libgd-non-bmp-entities for GD related Bug #51135
Patch version 2010-03-05 16:24 UTC
Return to Bug #51135 |
Download this patch
Patch Revisions:
Developer: aharvey@php.net
Index: ext/gd/libgd/gdft.c
===================================================================
--- ext/gd/libgd/gdft.c (revision 295852)
+++ ext/gd/libgd/gdft.c (working copy)
@@ -219,7 +219,7 @@
if (byte == '#') {
byte = *((unsigned char *) (str + 2));
if (byte == 'x' || byte == 'X') {
- for (i = 3; i < 8; i++) {
+ for (i = 3; i < 10; i++) {
byte = *((unsigned char *) (str + i));
if (byte >= 'A' && byte <= 'F')
byte = byte - 'A' + 10;
@@ -232,7 +232,7 @@
n = (n * 16) + byte;
}
} else {
- for (i = 2; i < 8; i++) {
+ for (i = 2; i < 10; i++) {
byte = *((unsigned char *) (str + i));
if (byte >= '0' && byte <= '9') {
n = (n * 10) + (byte - '0');
|