From: Pierre Joye Date: Sun, 25 Feb 2007 02:45:06 +0000 (+0000) Subject: - sync with libgd.org, patch from Kees Cook X-Git-Tag: php-5.2.2RC1~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfeff9efe696cebcdd6c02579bcf2f9bc2042446;p=php - sync with libgd.org, patch from Kees Cook --- diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 25974528af..86dd8c3c77 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -986,7 +986,7 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsi } else { ch = c & 0xFF; /* don't extend sign */ } - next++; + if (*next) next++; } break; case gdFTEX_Big5: {