2020-06-09 04:21:17 +02:00
|
|
|
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)../../
|
|
|
|
|
2018-08-24 11:25:25 +02:00
|
|
|
EXECUTABLES := \
|
2018-08-24 09:09:23 +02:00
|
|
|
double_free_large \
|
2018-08-24 11:53:17 +02:00
|
|
|
double_free_large_delayed \
|
2018-08-24 09:09:23 +02:00
|
|
|
double_free_small \
|
2018-08-24 11:53:17 +02:00
|
|
|
double_free_small_delayed \
|
2018-08-24 09:09:23 +02:00
|
|
|
unaligned_free_large \
|
|
|
|
unaligned_free_small \
|
|
|
|
read_after_free_large \
|
|
|
|
read_after_free_small \
|
|
|
|
write_after_free_large \
|
2018-10-08 23:41:06 +02:00
|
|
|
write_after_free_large_reuse \
|
2018-08-24 09:09:23 +02:00
|
|
|
write_after_free_small \
|
2018-10-08 23:41:06 +02:00
|
|
|
write_after_free_small_reuse \
|
2018-08-24 09:09:23 +02:00
|
|
|
read_zero_size \
|
|
|
|
write_zero_size \
|
2018-08-24 10:45:48 +02:00
|
|
|
invalid_free_protected \
|
|
|
|
invalid_free_unprotected \
|
|
|
|
invalid_free_small_region \
|
2018-08-24 11:09:33 +02:00
|
|
|
invalid_free_small_region_far \
|
2018-08-24 11:02:00 +02:00
|
|
|
uninitialized_free \
|
|
|
|
uninitialized_realloc \
|
|
|
|
uninitialized_malloc_usable_size \
|
2018-09-04 15:06:23 +02:00
|
|
|
eight_byte_overflow_small \
|
|
|
|
eight_byte_overflow_large \
|
2018-10-11 07:44:41 +02:00
|
|
|
string_overflow \
|
2020-04-16 06:02:16 +02:00
|
|
|
delete_type_size_mismatch \
|
|
|
|
unaligned_malloc_usable_size_small \
|
|
|
|
invalid_malloc_usable_size_small \
|
2020-06-09 04:21:17 +02:00
|
|
|
invalid_malloc_usable_size_small_quarantine \
|
|
|
|
malloc_object_size \
|
2020-06-18 03:59:44 +02:00
|
|
|
malloc_object_size_offset \
|
|
|
|
invalid_malloc_object_size_small \
|
|
|
|
invalid_malloc_object_size_small_quarantine
|
2018-08-24 11:25:25 +02:00
|
|
|
|
|
|
|
all: $(EXECUTABLES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(EXECUTABLES)
|