User Tools

Site Tools


ubsan

Supported as of GCC 5.1:

CC=gcc-5.1.0 CFLAGS='-fsanitize-undefined-trap-on-error -fsanitize=address -fsanitize=undefined -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=vla-bound -fsanitize=null -fsanitize=return -fsanitize=signed-integer-overflow -fsanitize=bounds  -fsanitize=alignment -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool -fsanitize=enum -fsanitize=vptr'

Not supported yet:

-fsanitize=bounds-strict

Help: https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html

ubsan.txt · Last modified: 2016/03/15 23:36 by didier