This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nss/18991] nss_files skips large entry in database


https://sourceware.org/bugzilla/show_bug.cgi?id=18991

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
Created attachment 8854
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8854&action=edit
Patch with nss_files tests, one of which triggers bug 18991

I used the attached collections of tests to reproduce this issue.

I tried to fix this using getline, but the whole thing turns very involved
because the existing code assumes that line read from the file is dissected in
place.  There is no place to manage the memory for the buffer, so it would
always have to be copied into the caller-supplied buffer.  It also does not
help that a match can only be checked after the line has been parsed
completely.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]