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] Refactor wordexp-test


Greetings,

This patch modifies wordexp-test.c such that words always ends at the
edge of unreadable page.

This makes it easy to catch overflows, such as BZ #18043 (and BZ #18042).

Tested: reverted fix for BZ #18043 in wordexp.c and verified that the
test for it fails with expected SIGSEGV.


Thanks,

2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

        * posix/wordexp-test.c (test_case): Add test for BZ #18043
        (do_bz18043): Delete.
        (at_page_end): New.
        (testit): Refactor to have words at the edge of unreadable page.



-- 
Paul Pluzhnikov

Attachment: glibc-20150306-bz18043-refactor.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]