Skip to content

Commit

Permalink
Sanitize UB in backend DB
Browse files Browse the repository at this point in the history
  • Loading branch information
plajjan committed Nov 8, 2022
1 parent abb1470 commit 632a358
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ DIST_ZIG=dist/zig

CFLAGS_DB = -I. -Ideps -I$(TD)/deps/instdir/include -DLOG_USE_COLOR -g
CFLAGS_DB+= $(CFLAGS_TARGET)
# TODO: enable sanitization of undefined behavior!
CFLAGS_DB+= -fno-sanitize=undefined -Werror
CFLAGS_DB+= -fsanitize=undefined -Werror
# TODO: clean up casts and remove this!
CFLAGS_DB+= -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast
# /backend ----------------------------------------------
Expand Down

0 comments on commit 632a358

Please sign in to comment.