Skip to content

Commit

Permalink
remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Oct 12, 2024
1 parent e035792 commit b1d9571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion androidtest/memtag/memtag_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,6 @@ int main(int argc, char **argv) {

test_fn();
do_context_switch();

return 0;
}

0 comments on commit b1d9571

Please sign in to comment.