Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 356 by [email protected]: can not mask function in closed source library
https://code.google.com/p/address-sanitizer/issues/detail?id=356

What steps will reproduce the problem?
1. Compile attached example: gmake
2. Run: LD_LIBRARY_PATH="./" ./app
3. it stops on function "f"

What is the expected output? What do you see instead?
At least not abort/exit after call function "f"

What version of the product are you using? On what operating system?
I try clang 3.5.0 and gcc 4.9.2

I used close source library (linux shared library) with my application, that I can not fix/recompile. I want ignore errors from it (sometimes it calls strncpy with the same pointers as input and output).

I tried add __attribute__((__no_sanitize_address__)) to its definitions,
I tried add __attribute__((__no_sanitize_address__)) to my function (which compiled with -fsanitize=address) that call function from close source library. I tried clang "-fsanitize-blacklist=blacklist.txt", and in blacklist.txt I mentioned bad function from close source library, plus my function with call bad function from close source library.

Neither of these variants can mask problem, and allow me to debug my code.

In attachment file is simple gnu make based project, that demonstrate problem.

Attachments:
        asan_bug1.tar  10.0 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to