Skip to content

[NSan] How to enable Numerical Sanitizer in Clang++ and generate instrumented code? #117912

@bartlettroscoe

Description

@bartlettroscoe

CC: @alexander-shaposhnikov, @firewave, @cjappl

I know this is closely related to:

but how to you enable support for the Numerical Sanitizer (NSan) described in the paper:

?

Is this as simple as setting a compiler option or do you need to build a version of LLVM Clang++ that even has support for NSan?

I can likely dig through source code and other places to figure this out, but I thought I might just ask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'compiler-rt:nsanNumerical stability sanitizerquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions