|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11178 possible off-by-one error in fgetcsv
Submitted: 2001-05-29 19:27 UTC Modified: 2001-06-18 20:30 UTC
From: wolfram dot schmidt at e-prolde Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 + 39 = ?
Subscribe to this entry?

 [2001-05-29 19:27 UTC] wolfram dot schmidt at 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 05:38 UTC]
Do you have any test case that shows this possible error?
Since it works just fine for me..


 [2001-06-18 20:30 UTC]
No feedback. Should be fixed. (can't reproduce)

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jan 27 18:03:49 2023 UTC