Skip to content

Commit

Permalink
cleanup the sanitizer stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesnicholson committed Dec 30, 2023
1 parent b1187b6 commit 8000f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ endif
CPPFLAGS += -Wno-c++98-compat -Wno-padded

ifdef COBS_SANITIZER
CPPFLAGS += -fsanitize=$(COBS_SANITIZER)
LDFLAGS += -fsanitize=$(COBS_SANITIZER)
ifneq (,$(findstring memory,$(COBS_SANITIZER)))
CPPFLAGS += -fsanitize-ignorelist=sanitize-ignorelist.txt
LDFLAGS += -fsanitize-ignorelist=sanitize-ignorelist.txt
endif
CPPFLAGS += -fsanitize=$(COBS_SANITIZER) -fsanitize-ignorelist=sanitize-ignorelist.txt
LDFLAGS += -fsanitize=$(COBS_SANITIZER) -fsanitize-ignorelist=sanitize-ignorelist.txt
endif

$(BUILD_DIR)/cobs_unittests: $(OBJS) $(BUILD_DIR)/cobs.c.o Makefile
Expand Down
2 changes: 1 addition & 1 deletion cobs.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ typedef struct cobs_decode_inc_ctx {

typedef struct cobs_decode_inc_args {
void const *enc_src; // pointer to current position of encoded payload
void *dec_dst; // pointer to decoded buffer.
void *dec_dst; // pointer to decoded output buffer.
size_t enc_src_max; // length of the |src| input buffer.
size_t dec_dst_max; // length of the |dst| output buffer.
} cobs_decode_inc_args_t;
Expand Down

0 comments on commit 8000f77

Please sign in to comment.