Cool, we don't have this in LLVM-ASan, but we have plans to instrument inline asm soon (not just constraints).
asm-struct-1.c test looks like a false positive though - the code does not access any invalid memory, it only does a harmless pointer cast. On Wed, May 28, 2014 at 10:36 PM, Konstantin Serebryany <[email protected]> wrote: > On Wed, May 28, 2014 at 5:33 PM, Marat Zakirov <[email protected]> wrote: >> Hi all, >> >> Here's a patch for optional Asan instrumentation of inline assembly. >> >> This version scans gimple for GIMPLE_ASMs and performs usual instrumentation >> of arguments with memory constraints ("m", "o", etc.) with fixed size. >> >> Instrumentation is turned off by default. >> >> This was successfully bootstrapped and regtested on x64. I have also >> instrumented and ran ffmpeg regression testsuite (it seems to have quite >> some inline asm). >> >> --Marat
