hardened_malloc/test/simple-memory-corruption/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
CONFIG_SLAB_CANARY := true
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
$(error CONFIG_SLAB_CANARY must be true or false)
endif
CFLAGS += -DSLAB_CANARY=$(CONFIG_SLAB_CANARY)
LDLIBS := -lhardened_malloc
LDFLAGS := -Wl,-L$(dir)../../,-R,$(dir)../../
EXECUTABLES := \
double_free_large \
2018-08-24 15:23:17 +05:30
double_free_large_delayed \
double_free_small \
2018-08-24 15:23:17 +05:30
double_free_small_delayed \
unaligned_free_large \
unaligned_free_small \
read_after_free_large \
read_after_free_small \
write_after_free_large \
write_after_free_large_reuse \
write_after_free_small \
write_after_free_small_reuse \
read_zero_size \
write_zero_size \
2018-08-24 14:15:48 +05:30
invalid_free_protected \
invalid_free_unprotected \
invalid_free_small_region \
invalid_free_small_region_far \
2018-08-24 14:32:00 +05:30
uninitialized_free \
uninitialized_realloc \
uninitialized_malloc_usable_size \
2018-09-04 18:36:23 +05:30
eight_byte_overflow_small \
eight_byte_overflow_large \
2018-10-11 11:14:41 +05:30
string_overflow \
2020-04-16 09:32:16 +05:30
delete_type_size_mismatch \
unaligned_malloc_usable_size_small \
invalid_malloc_usable_size_small \
invalid_malloc_usable_size_small_quarantine \
malloc_object_size \
malloc_object_size_offset
all: $(EXECUTABLES)
clean:
rm -f $(EXECUTABLES)