From b1d9571fecf81a01374e33639147e852b45f9d1a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 12 Oct 2024 03:23:03 -0400 Subject: [PATCH] remove trailing whitespace --- README.md | 4 ++-- androidtest/memtag/memtag_test.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bccafc2..b83595e 100644 --- a/README.md +++ b/README.md @@ -731,7 +731,7 @@ Random tags are set for all slab allocations when allocated, with 4 excluded val 3. the current (or previous) tag used for the slot to the left 4. the current (or previous) tag used for the slot to the right -When a slab allocation is freed, the reserved `0` tag is set for the slot. +When a slab allocation is freed, the reserved `0` tag is set for the slot. Slab allocation slots are cleared before reuse when memory tagging is enabled. This ensures the following properties: @@ -740,7 +740,7 @@ This ensures the following properties: - Use-after-free are deterministically detected until the freed slot goes through both the random and FIFO quarantines, gets allocated again, goes through both quarantines again and then finally gets allocated again for a 2nd time. -- Since the default `0` tag is reserved, untagged pointers can't access slab +- Since the default `0` tag is reserved, untagged pointers can't access slab allocations and vice versa. Slab allocations are done in a statically reserved region for each size class diff --git a/androidtest/memtag/memtag_test.cc b/androidtest/memtag/memtag_test.cc index 5083636..f858292 100644 --- a/androidtest/memtag/memtag_test.cc +++ b/androidtest/memtag/memtag_test.cc @@ -346,6 +346,6 @@ int main(int argc, char **argv) { test_fn(); do_context_switch(); - + return 0; }