cvs: gd(GD_2_0) /libgd gdft.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1170807166@cvsserver>
pajoye		Wed Feb  7 00:12:46 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd	gdft.c 
  Log:
  - #40 — possible Buffer overflow in the gdImageStringFTEx 
    function in gdft.c (patch by Kees Kook)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.28.2.1&r2=1.28.2.2&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.28.2.1 gd/libgd/gdft.c:1.28.2.2
--- gd/libgd/gdft.c:1.28.2.1	Sat Feb  3 01:11:33 2007
+++ gd/libgd/gdft.c	Wed Feb  7 00:12:46 2007
@@ -1186,7 +1186,7 @@
 		{
 		  ch = c & 0xFF;	/* don't extend sign */
 		}
-	      next++;
+				if (*next) next++;
 	    }
 	    break;
 	  case gdFTEX_Big5:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.