On Tue, Apr 20, 2021 at 10:23:35AM -0400, Greg Reagle wrote:
> Can someone point me to an article or blog post recommending which of these
> sanitize options would be recommended for general daily use?

Take your favourite Makefile and add

CFLAGS += -fsanitize=address -fsanitize=undefined
LDFLAGS += -lasan -lubsan 

You might also need CFLAGS += -fanalyzer.

Then (at least with GCC 10.3.0) it should be as simple as building and
running the program.

Reply via email to