cvs: gd /libgd ISSUES gd_io_dp.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1167860830@cvsserver>
pajoye		Wed Jan  3 21:47:10 2007 UTC

  Modified files:              
    /gd/libgd	gd_io_dp.c ISSUES 
  Log:
  #33, dynamicGetbuf must return 0 for errors and EOF
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_io_dp.c?r1=1.12&r2=1.13&diff_format=u
Index: gd/libgd/gd_io_dp.c
diff -u gd/libgd/gd_io_dp.c:1.12 gd/libgd/gd_io_dp.c:1.13
--- gd/libgd/gd_io_dp.c:1.12	Wed Apr  5 15:54:20 2006
+++ gd/libgd/gd_io_dp.c	Wed Jan  3 21:47:09 2007
@@ -292,7 +292,11 @@
     {
       if (remain == 0)
 	{
-	  return EOF;
+	/* 2.0.34: EOF is incorrect. We use 0 for
+		 errors and EOF, just like fileGetbuf,
+		 which is a simple fread() wrapper. 
+		 TBB. Original bug report: Daniel Cowgill. */
+     return 0; /* NOT EOF */
 	}
       rlen = remain;
     }
http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.28&r2=1.29&diff_format=u
Index: gd/libgd/ISSUES
diff -u gd/libgd/ISSUES:1.28 gd/libgd/ISSUES:1.29
--- gd/libgd/ISSUES:1.28	Wed Jan  3 21:42:02 2007
+++ gd/libgd/ISSUES	Wed Jan  3 21:47:09 2007
@@ -60,4 +60,5 @@
      at very small dpi values (John Ellson/Graphviz)
 #31, Added DISABLE_THREADS to permit disabling of thread support
      (John Ellson/Graphviz)
-#32,  Added sanity checks for allocations failure in gd_gd2
+#32, Added sanity checks for allocations failure in gd_gd2
+#33, dynamicGetbuf must return 0 for errors and EOF
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.