diff --git a/Android.bp b/Android.bp index 20d19d4..b8483e4 100644 --- a/Android.bp +++ b/Android.bp @@ -15,8 +15,8 @@ common_cflags = [ "-DWRITE_AFTER_FREE_CHECK=true", "-DSLOT_RANDOMIZE=true", "-DSLAB_CANARY=true", - "-DSLAB_QUARANTINE_RANDOM_LENGTH=0", - "-DSLAB_QUARANTINE_QUEUE_LENGTH=0", + "-DSLAB_QUARANTINE_RANDOM_LENGTH=1", + "-DSLAB_QUARANTINE_QUEUE_LENGTH=1", "-DGUARD_SLABS_INTERVAL=1", "-DGUARD_SIZE_DIVISOR=2", "-DREGION_QUARANTINE_RANDOM_LENGTH=128", diff --git a/Makefile b/Makefile index 76d1c80..d4b4d9b 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ CONFIG_ZERO_ON_FREE := true CONFIG_WRITE_AFTER_FREE_CHECK := true CONFIG_SLOT_RANDOMIZE := true CONFIG_SLAB_CANARY := true -CONFIG_SLAB_QUARANTINE_RANDOM_LENGTH := 0 -CONFIG_SLAB_QUARANTINE_QUEUE_LENGTH := 0 +CONFIG_SLAB_QUARANTINE_RANDOM_LENGTH := 1 +CONFIG_SLAB_QUARANTINE_QUEUE_LENGTH := 1 CONFIG_GUARD_SLABS_INTERVAL := 1 CONFIG_GUARD_SIZE_DIVISOR := 2 CONFIG_REGION_QUARANTINE_RANDOM_LENGTH := 128