Bug #11178 Updated: possible off-by-one error in fgetcsv
| From: | sniper@php.net | Date: | Tue, 19 Jun 2001 00:30:08 +0000 |
| Subject: | Bug #11178 Updated: possible off-by-one error in fgetcsv | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56874@lists.php.net to get a copy of this message | ||
ID: 11178
Updated by: sniper
Reported By: wolfram.schmidt@e-prolde
Old-Status: Feedback
Status: Closed
Bug Type: Filesystem function related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
No feedback. Should be fixed. (can't reproduce)
Previous Comments:
---------------------------------------------------------------------------
[2001-05-30 05:38:04] sniper@php.net
Do you have any test case that shows this possible error?
Since it works just fine for me..
--Jani
---------------------------------------------------------------------------
[2001-05-29 19:27:23] wolfram.schmidt@e-prolde
ext/standard/file.c line 1890-1917 in function fgetcsv
/* add single space - makes it easier to parse trailing null field */
*tptr++ = ' ';
*tptr = 0;
I think if FP_FGETS returns exactly len bytes and there are no traling whitespaces the 0 will be
written behind the buf's end.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11178&edit=2