ci: Hard error on all -fsanitize=undefined warnings
I saw in a recent test log a ton of spam ``` libglnx/glnx-dirfd.c:253:3: runtime error: null pointer passed as argument 1, which is declared to never be null ``` which actually turned out to be libglnx getting reverted. But let's be sure now we actually bomb out quickly on UBSAN warnings in general. Closes: #693 Approved by: jlebon
This commit is contained in:
parent
6d7e85bb38
commit
515f832067
|
|
@ -12,7 +12,7 @@ packages:
|
|||
- libasan
|
||||
|
||||
env:
|
||||
CFLAGS: '-fsanitize=undefined -fsanitize=address'
|
||||
CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address'
|
||||
ASAN_OPTIONS: 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc
|
||||
# TODO when we're doing leak checks: G_SLICE: "always-malloc"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue