[Bug libc/21521] New: getmntent, getmntent_r buffer size handling
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Thu May 25 09:09:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=21521
Bug ID: 21521
Summary: getmntent, getmntent_r buffer size handling
Product: glibc
Version: 2.25
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Flags: security-
getmntent_r currently ignores everything after the first 4 KiB, and does not
have a way to request more buffer space from the caller. I think we need to
introduce an ERANGE protocol (similar to the NSS functions), or perhaps
deprecate getmntent_r and fix only getmntent.
Related bug report: http://bugs.alpinelinux.org/issues/5703
The Alpine Linux example only slightly exceeds 1024 bytes, which is why it
works on glibc, but that isn't really guaranteed (PATH_MAX itself already is 4
KiB).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list