This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12685] fopen doesn't honor last byte of valid modes
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 22 Apr 2012 02:11:48 +0000
- Subject: [Bug libc/12685] fopen doesn't honor last byte of valid modes
- Auto-submitted: auto-generated
- References: <bug-12685-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12685
--- Comment #4 from Michael Kerrisk <mtk.manpages at gmail dot com> 2012-04-22 02:11:48 UTC ---
Sorry, my original comment should have read:
Actually, is there any reason at all to limit the length of the string? Why
not parse until NUL *or comma*? Given that "mode" may be a constructed string,
or that other flags may be added in the future, it seems that arbitrarily
limiting the length of the string to some number of bytes is just setting up
both glibc and userspace bugs for the future.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.