Skip to content

Enable AddressSanitizer on Debug and Checked builds for both MSVC and Clang #52131

Closed

Description

@jkoritzinsky

AddressSanitizer is a tool that helps with common bugs like use-out-of-scope, buffer-overflow, use-after-free, etc. It is supported on GCC, Clang, and newer versions of MSVC.

Today, we use Run-Time Checks on MSVC to validate some of these scenarios, but we don't run any equivalent on non-MSVC builds. We have some infrastructure for running AddressSanitizer on Clang builds, but we've never enabled it for our builds (some partners have enabled it for theirs at various times).

By enabling AddressSanitizer for both our MSVC and Clang builds, we would ensure that we validate our code against common classes of bugs in C and C++.

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Apr 30, 2021
  2. removed
    untriagedNew issue has not been triaged by the area owner
    on May 5, 2021
  3. added this to the Future milestone on May 5, 2021
  4. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 22, 2021
  5. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 29, 2021
  6. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 30, 2021
  7. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 22, 2022
  8. jkoritzinsky commented on Aug 25, 2024

    @jkoritzinsky
    MemberAuthor

    We've enabled ASAN though a new command line option instead of per-config.

  9. locked and limited conversation to collaborators on Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions