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]

Re: [PATCH] Preload infrastructure.


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


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