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]

[patch] Fix for BZ #18043 buffer-overflow (read past the end) in wordexp/parse_dollars/parse_param


Greetings,

Attached patch fixes BZ #18043.

TIL: strchr("abc", '\0') != NULL and that is apparently well defined.


2015-02-27  Paul Pluzhnikov  <ppluzhnikov@google.com>

        [BZ #18043]
        * posix/wordexp.c (parse_param): Fix buffer overflow.
        * posix/wordexp-test.c: Add test case.

-- 
Paul Pluzhnikov

Attachment: bz18043.patch.txt
Description: Text document


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