Skip to content

Commit 44247fe

Browse files
Try ubsan together with asan
1 parent 66d0309 commit 44247fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ int main(int argc, char **argv) {
7474

7575
// WITH_ASAN builds with sanitizers
7676
if (env_is("WITH_ASAN", "1")) {
77-
strcat(CXXFLAGS, " -fsanitize=address -g");
78-
strcat(LDFLAGS, " -lasan");
77+
strcat(CXXFLAGS, " -fsanitize=address,undefined -g");
78+
strcat(LDFLAGS, " -lasan -lubsan");
7979
}
8080

8181
if (!strcmp(argv[1], "examples")) {

0 commit comments

Comments
 (0)