summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-02 18:51:57 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 18:54:12 +0100
commitddd54114724f5c2adefa2f4c5249c1af13295327 (patch)
tree6d7089199b581091642ad4104282b88afaf64458 /Base
parent61f298faf3ea5745d1137ab5ad695b069a1a7836 (diff)
downloadserenity-ddd54114724f5c2adefa2f4c5249c1af13295327.zip
LibC: Protect empty-but-kept-around ChunkedBlocks with PROT_NONE
We now keep a separate queue of empty ChunkedBlocks in each allocator. The underlying memory for each block is mprotect'ed with PROT_NONE to provoke crashes on use-after-free. This is not going to catch *all* use-after-frees, but if it catches some, that's still pretty nice. :^) The malloc memory region names are now updated to reflect their reuse status: "malloc: ChunkedBlock(size) (free/reused)"
Diffstat (limited to 'Base')
0 files changed, 0 insertions, 0 deletions