]> git.ipfire.org Git - thirdparty/strongswan.git/commit
chunk: Optionally clear mmap'd chunk before unmapping
authorTobias Brunner <tobias@strongswan.org>
Thu, 30 Sep 2021 10:39:08 +0000 (12:39 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Oct 2021 09:30:03 +0000 (11:30 +0200)
commite2e21f248621dd2f654388bbb1ccc322fc8de04c
treeef39c1f6b1512d797c5d89de0c3ae2b9056f84e1
parentb9aafa7ebfe3934d6fe8f1bef8587994c8ce7d93
chunk: Optionally clear mmap'd chunk before unmapping

This is mostly for the non-mmap case as with mmap available, access to the
unmapped memory isn't easily possible (e.g. opening the same area with
MAP_ANONYMOUS | MAP_UNINITIALIZED is usually prevented by the missing
CONFIG_MMAP_ALLOW_UNINITIALIZED option in most kernels).
src/libstrongswan/tests/suites/test_chunk.c
src/libstrongswan/utils/chunk.c
src/libstrongswan/utils/chunk.h