Skip to content

Commit 1cc0171

Browse files
authored
Merge pull request #107 from maxmind/horgh/sanitizer-workflow
Fix sanitizer workflow
2 parents d8accfe + 621c6a3 commit 1cc0171

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/address-sanitizer.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Address Sanitizer
1010
runs-on: ubuntu-latest
1111
env:
12-
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2
12+
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2:detect_leaks=0
1313
CC: clang
1414
CFLAGS: -fsanitize=address -Wall -Wextra -Wpedantic -Wformat=2 -Walloca -Wvla -Wimplicit-fallthrough -Wcast-qual -Wconversion -Wshadow -Wundef -Wstrict-prototypes -Wswitch-enum -fstack-protector -D_FORTIFY_SOURCE=2 -Werror
1515
LDFLAGS: -fsanitize=address
@@ -32,8 +32,7 @@ jobs:
3232
python -m pip install --upgrade pip
3333
pip install tox tox-gh-actions
3434
35-
- name: Build
36-
run: python setup.py build
37-
3835
- name: Test with tox
3936
run: MM_FORCE_EXT_TESTS=1 tox
37+
env:
38+
LD_PRELOAD: libasan.so.6

0 commit comments

Comments
 (0)