Re: ASAN - How to suppress strlen Error ?

2019-02-19 Thread Yuri Gribov
You can run Asan in error recovery mode (it's not generally recommended as errors after the first one can not be reported reliably but normally it works fine). You can see details e.g. in this answer: https://github.com/google/sanitizers/issues/649#issuecomment-176304136 On 2/19/19, Hiren Shah wr

Re: ASAN - How to suppress strlen Error ?

2019-02-19 Thread 'Alexander Potapenko' via address-sanitizer
You can check out ASan documentation on issue suppression: https://clang.llvm.org/docs/AddressSanitizer.html#suppressing-reports-in-external-libraries But instead I would make sure the string in question is NULL-terminated. Calling strlen() on non-terminated string may cause your code crash in prod

ASAN - How to suppress strlen Error ?

2019-02-19 Thread Hiren Shah
Hi, I am new to asan. I want to suppress strlen error. I am getting following backtrace which is aborting ASAN. I would like ASAN to skip that error. #3 0x7fd8f5994288 in __sanitizer::Die() () from /lib64/libasan.so.4 #4 0x7fd8f5975275 in __asan::ReportGenericError(unsigned long,