Stream: wg-secure-code

Topic: asan false positives

Stuart Small (Oct 09 2019 at 01:19, on Zulip):

I know rust can trigger some false positives with address sanitizer. In fuzzing a crate I got some real findings but also got ThreadSanitizer to trigger on some inputs. Does anyone have experience with if I can trust it with rust? I haven't had it trigger before

stko (Oct 09 2019 at 09:47, on Zulip):

With thread sanitizer false positives are highly likely if you have uninstrumented code that uses atomics, custom asm for synchronization, or atomic fences. Otherwise you should be fine.

Stuart Small (Oct 09 2019 at 12:47, on Zulip):

Awesome, thanks!

Shnatsel (Oct 09 2019 at 23:25, on Zulip):

ASAN sometimes triggers false positives on this C++ oriented check, which is quite easy to disable:

Shnatsel (Oct 09 2019 at 23:28, on Zulip):

Here's the workaround in action:

Last update: Nov 11 2019 at 23:25UTC