--- gd-2.0.33/gdft.c.cve-2007-0455 2004-11-02 14:00:48.000000000 -0700 +++ gd-2.0.33/gdft.c 2007-02-05 06:46:04.000000000 -0700 @@ -1161,7 +1161,7 @@ fprintf(stderr,"dpi=%d,%d metric_res=%d { ch = c & 0xFF; /* don't extend sign */ } - next++; + if (*next) next++; } break; case gdFTEX_Big5: