This is the mail archive of the libc-alpha@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]

Fix BZ #18757 (fmemopen doesn't fail with invalid modes)


Greetings,

Attached patch adds a test for invalid modes in fmemopen, and fixes BZ #18757.
Tested on Linux/x86_64, no new failures.

Thanks,

2015-08-09  Paul Pluzhnikov  <ppluzhnikov@google.com>

        [BZ #18757]
        * libio/fmemopen.c (valid_mode_p): New function.
        (__fmemopen): Call it.
        * libio/test-fmemopen.c (do_bz18757): New test.




-- 
Paul Pluzhnikov

Attachment: bz18757-20150809.txt
Description: Text document


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