[PATCH] nptl improve tst-context1.c to catch buffer overruns
Steve Munroe
sjmunroe@us.ibm.com
Tue Jun 15 22:01:00 GMT 2004
This patch improves the coverage of tst-context1.c to check for buffer
overruns of the ucontext struct in the get/swapcontext functions.
Defined a new struct tst_context_t to append guard words following each
ucontext_t in the ctx array. Function tf() initializes the guard words
and uc_link before calls to makecontext and swapcontext. Then fct() can
check for any changes to the guard words and verify that uc_link is
still valid.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-context-20040607.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040615/4c37a273/attachment.txt>
More information about the Libc-alpha
mailing list