diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-06-02 09:15:40 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-06-02 09:15:40 -0700 |
commit | 2367988301704881a61ca12c23eda9c385c43d3e (patch) | |
tree | 613a6b3d8a3d25db89ee6944a524abfc32c1d4e1 /makefile | |
parent | e8eea70ab1f70822f756be3750817ac5e24bf24d (diff) | |
download | mu-2367988301704881a61ca12c23eda9c385c43d3e.tar.gz |
3026 - integer overflow protection
How did I not know about -ftrapv for so long?! Found while reading Memarian et al, "Into the depths of C: Elaborating the de facto standards". http://www.cl.cam.ac.uk/~pes20/cerberus/pldi16.pdf
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile index cc0fd84c..626537d4 100644 --- a/makefile +++ b/makefile @@ -4,7 +4,7 @@ CXX ?= c++ CFLAGS ?= -g -O3 mu_bin: makefile mu.cc termbox/libtermbox.a - ${CXX} ${CFLAGS} -Wall -Wextra -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin + ${CXX} ${CFLAGS} -Wall -Wextra -ftrapv -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin # To see what the program looks like after all layers have been applied, read # mu.cc |