cvs: gd(GD_2_0) /libgd gd.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1172533590@cvsserver>
pajoye		Mon Feb 26 23:46:30 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd	gd.c 
  Log:
  - #41, fix possible overrun (detected with valgrind) (Nuno Lopes)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49.2.2&r2=1.49.2.3&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.49.2.2 gd/libgd/gd.c:1.49.2.3
--- gd/libgd/gd.c:1.49.2.2	Wed Feb  7 00:21:27 2007
+++ gd/libgd/gd.c	Mon Feb 26 23:46:29 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.2 2007/02/07 00:21:27 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.3 2007/02/26 23:46:29 pajoye Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -1984,7 +1984,7 @@
 		}
 		x = x1+1;
 		do {
-			for (; x<=wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc) ; x++) {
+			for (; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc) ; x++) {
 				if (pts[y][x]){
 					/* we should never be here */
 					break;
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.