Skip to content

Commit

Permalink
Add AddressSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
wantehchang committed Mar 21, 2024
1 parent e746b23 commit d159843
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-unix-static-sanitized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d159843

Please sign in to comment.