cvs: gd /libgd ISSUES gd_io_dp.c

From: Date: Wed, 03 Jan 2007 21:47:10 +0000
Subject: cvs: gd /libgd ISSUES gd_io_dp.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-61@lists.php.net to get a copy of this message
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

« previous php.gd.cvs (#61) next »