I'd like to suppress the error strncpy-param-overlap thrown fom some shared library. Even though I've addedd shared.so to suppression file, asan still reports it:
==5006==ERROR: AddressSanitizer: strncpy-param-overlap: memory ranges [0x60b00000af90,0x60b00000aff4) and [0x60b00000af90, 0x60b00000aff4) overlap #0 0x46e398 (/home/pjachowi/tmp/main+0x46e398) #1 0x7f3188af0a9b (shared.so+0xa9b) #2 0x4ed259 (/home/pjachowi/tmp/main+0x4ed259) #3 0x7f318787c82f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #4 0x418db8 (/home/pjachowi/tmp/main+0x418db8) 0x60b00000af90 is located 0 bytes inside of 100-byte region [0x60b00000af90,0x60b00000aff4) allocated by thread T0 here: #0 0x4b8ee8 (/home/pjachowi/tmp/main+0x4b8ee8) #1 0x7f3188af0a83 (shared.so+0xa83) #2 0x4ed259 (/home/pjachowi/tmp/main+0x4ed259) #3 0x7f318787c82f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) 0x60b00000af90 is located 0 bytes inside of 100-byte region [0x60b00000af90,0x60b00000aff4) allocated by thread T0 here: #0 0x4b8ee8 (/home/pjachowi/tmp/main+0x4b8ee8) #1 0x7f3188af0a83 (shared.so+0xa83) #2 0x4ed259 (/home/pjachowi/tmp/main+0x4ed259) #3 0x7f318787c82f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) SUMMARY: AddressSanitizer: strncpy-param-overlap (/home/pjachowi/tmp/main+0x46e398) f()=42 ==5007==Attached to thread 5006. ==5007==Detached from thread 5006. ----------------------------------------------------- Suppressions used: count bytes template 2 104 shared.so ----------------------------------------------------- I use ASAN_OPTIONS=verbosity=3:suppressions=$(pwd)/asan.supp:print_suppressions=true:debug=true:halt_on_error=false $ cat ./asan.supp interceptor_via_lib:shared.so -- Piotr -- 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 address-sanitizer+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.