From d159843a6e47d4a8175ce7e76cf202b54e99c2f2 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Tue, 19 Mar 2024 14:45:56 -0700 Subject: [PATCH] Add AddressSanitizer --- .github/workflows/ci-unix-static-sanitized.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-unix-static-sanitized.yml b/.github/workflows/ci-unix-static-sanitized.yml index 45d850255c..fdf15e8302 100644 --- a/.github/workflows/ci-unix-static-sanitized.yml +++ b/.github/workflows/ci-unix-static-sanitized.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - sanitizer: [ undefined ] # TODO(yguyon): Add address, memory, thread + sanitizer: [ address, undefined ] # TODO(yguyon): Add memory, thread env: CC: clang @@ -89,5 +89,6 @@ jobs: run: ninja - name: Run AVIF Tests working-directory: ./build - # ASAN_OPTIONS=allocator_may_return_null=1 may be necessary for address sanitizer. run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure + env: + ASAN_OPTIONS: allocator_may_return_null=1