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 fails to set errno on failure


Greetings,

Attached patch fixes BZ #18757 - fmemopen fails to set errno when
failure is caused by invalid mode, or request for too much memory.

The added test is currently failing due to a bug in mtrace.pl:
https://sourceware.org/ml/libc-alpha/2015-08/msg00546.html

So this patch would need to go in after mtrace is fixed.

Thanks,

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

        [BZ #18757]
        * libio/iofopncook.c (_IO_fopencookie): Set errno on failure
        * libio/test-fmemopen.c (do_bz18820): Extend the test to cover BZ #18757



-- 
Paul Pluzhnikov

Attachment: bz18757-20150813.txt
Description: Text document


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