diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-06-30 13:38:00 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-06-30 13:38:00 -0400 |
commit | 3c55d2c9a122091db77b735120c3bf5aa29722ad (patch) | |
tree | c40a8f2e5dbe80a86d809efcae21051142e03491 /Makefile | |
parent | 624ac93ac5673cf88a426de054d36c61503c1779 (diff) |
add tests for double free() and use after free()
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -9,7 +9,12 @@ TESTDIR=test CFLAGS=-I$(INCDIR) -Wall -Wextra -Wpedantic -g OBJECTS=$(OBJDIR)/mapalloc.o -TESTS=$(BINDIR)/overflow $(BINDIR)/underflow $(BINDIR)/zero $(BINDIR)/realloc +TESTS=$(BINDIR)/overflow \ + $(BINDIR)/underflow \ + $(BINDIR)/zero \ + $(BINDIR)/realloc \ + $(BINDIR)/use-after-free \ + $(BINDIR)/double-free all: $(LIBDIR)/libmapalloc.a @@ -34,6 +39,8 @@ $(BINDIR)/overflow: $(TESTDIR)/overflow.c $(BINDIR)/underflow: $(TESTDIR)/underflow.c $(BINDIR)/zero: $(TESTDIR)/zero.c $(BINDIR)/realloc: $(TESTDIR)/realloc.c +$(BINDIR)/use-after-free: $(TESTDIR)/use-after-free.c +$(BINDIR)/double-free: $(TESTDIR)/double-free.c $(TESTS): @mkdir -p $(@D) |