Skip to content

Commit

Permalink
test: Enable more sanitizers in ubsan tests.
Browse files Browse the repository at this point in the history
cmp does a lot of work with integers and some with floats, so it's good
to have checks for undefined behaviour on those data types.
  • Loading branch information
iphydf committed Apr 5, 2024
1 parent e836703 commit b302add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NOFPUTESTCFLAGS ?= $(TESTCFLAGS) -DCMP_NO_FLOAT
ADDRCFLAGS ?= -fsanitize=address
MEMCFLAGS ?= -fsanitize=memory -fno-omit-frame-pointer \
-fno-optimize-sibling-calls
UBCFLAGS ?= -fsanitize=undefined
UBCFLAGS ?= -fsanitize=undefined,nullability,local-bounds,float-divide-by-zero,integer

.PHONY: all clean test coverage

Expand Down

0 comments on commit b302add

Please sign in to comment.