steleman / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

moar string interceptors: strstr, strcasestr, strcspn, strpbrk #346

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We seem to be missing interceptors for a few frequent libc string  functions. 
They are not easy to handle even in asan-ified glibc, so we need interceptors 
anyway. 

Anyone? 

Original issue reported on code.google.com by konstant...@gmail.com on 24 Sep 2014 at 1:25

GoogleCodeExporter commented 9 years ago
We can take this if you don't mind waiting couple of weeks.

Original comment by tetra2...@gmail.com on 24 Sep 2014 at 2:32

GoogleCodeExporter commented 9 years ago
You are more than welcome. 
Please add the interceptors to sanitizer_common, 
add run-time guards (two different flags, I think: replace_strstr and 
replace_strcspn),
and add tests similar to 
test/sanitizer_common/TestCases/pthread_mutexattr_get.cc

When you actually start working on it, claim this bug so that others don't work 
on it in parallel.  

Original comment by konstant...@gmail.com on 24 Sep 2014 at 2:49

GoogleCodeExporter commented 9 years ago
Hello,
I am starting the task implementation. 

Original comment by mguse...@gmail.com on 3 Oct 2014 at 8:10