Add interceptors for the NetBSD style of regex(3) present inside libc:
- regcomp
- regexec
- regerror
- regfree
- regnsub
- regasub
Add a dedicated test verifying the installed interceptors.
Paths
| Differential D54584
Add new interceptor for regex(3) in NetBSD ClosedPublic Authored by krytarowski on Nov 15 2018, 9:09 AM.
Details Summary Add interceptors for the NetBSD style of regex(3) present inside libc:
Add a dedicated test verifying the installed interceptors.
Diff Detail
Event TimelineThis revision now requires changes to proceed.Nov 29 2018, 1:59 PM krytarowski added inline comments. This revision is now accepted and ready to land.Dec 3 2018, 5:36 PM krytarowski marked 2 inline comments as done. krytarowski added inline comments.
Closed by commit rCRT348224: Add new interceptor for regex(3) in NetBSD (authored by kamil). · Explain WhyDec 3 2018, 5:44 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 176522 lib/sanitizer_common/sanitizer_common_interceptors.inc
lib/sanitizer_common/sanitizer_platform_interceptors.h
lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
test/sanitizer_common/TestCases/NetBSD/regex.cc
|
if REAL failed, string may be not null terminated, so strlen will crash