This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21521] New: getmntent, getmntent_r buffer size handling
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 25 May 2017 09:09:27 +0000
- Subject: [Bug libc/21521] New: getmntent, getmntent_r buffer size handling
- Auto-submitted: auto-generated
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.