This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Preload infrastructure.
- From: Jeff Law <law at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org
- Date: Mon, 21 Oct 2013 13:55:40 -0600
- Subject: Re: [PATCH] Preload infrastructure.
- Authentication-results: sourceware.org; auth=none
- References: <20131021193617 dot GA29829 at domone dot podge>
On 10/21/13 13:36, OndÅej BÃlka wrote:
Hi, to continue idea from
http://www.sourceware.org/ml/libc-alpha/2013-10/msg00303.html
I wrote a simple custom library to detect undefined behaviour and
performance problems.
A first implementation does:
- overflow checks for string routines.
Just a note, this stuff is already checked by memstomp
memcpy
wmemcpy
wcscat
strncat
wcsncat
strcpy
wcscpy
memccpy
strncpy
wcsncpy
mempcpy
wmempcpy
stpcpy
stpncpy
If you look in the Fedora memstmp package there's also a minimal
testsuite to verify interception and errors triggering on bogus inputs.
Jeff