From: Pierre Joye Date: Sun, 25 Feb 2007 02:56:03 +0000 (+0000) Subject: - MFB: sync with libgd.org, patch from Kees Cook X-Git-Tag: RELEASE_1_0_1~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=519e18a2c3948cc60dab36654f6962e3dc0489f8;p=php - MFB: 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: {