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 libc/21521] New: getmntent, getmntent_r buffer size handling


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.

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