Skip to content

Windows LLVM Sanitizer Support #89339

Closed
@voteblake

Description

@voteblake

In an effort to fuzz a Windows-specific Rust program with cargo-fuzz I've done a bit of digging that leads me to think the compiler is the current blocker.

cargo-fuzz mentions libFuzzer "only works on x86-64 Linux and x86-64 macOS for now". The libFuzzer docs in turn suggest Windows should now be support-able, and the LLVM AddressSanitizer documentation appears to agree.

Looking at the history of sanitizer discussion here I see Windows support being mentioned as possible as early as 2017 #39699 (comment). Windows support was also mentioned in #47174 as part of the discussion on stabilizing the -Z sanitize options.

I'm opening this issue to document the data I've gathered, ask for input on if I'm understanding the current state correctly, and also understand if anyone is working on this. I may be able to help, but am not an experienced contributor to the compiler. I've started to work locally to understand what this change would look like if it is in-fact possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-sanitizersArea: Sanitizers for correctness and code qualityO-windows-msvcToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions