bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *alloc: Take advantage of CHERI bounds-checking


From: Bruno Haible
Subject: Re: *alloc: Take advantage of CHERI bounds-checking
Date: Sun, 12 Nov 2023 00:47:23 +0100

> This set of patches handles most memory allocators that we have in gnulib.

And this patch handles the 'ssfmalloc' memory allocator.


2023-11-11  Bruno Haible  <bruno@clisp.org>

        ssfmalloc: Take advantage of CHERI bounds-checking.
        * lib/ssfmalloc.h: Include <cheri.h>.
        (struct dissected_page_header) [CHERI]: Add field 'whole_page'.
        (init_small_block_page, init_medium_block_page) [CHERI]: Initialize it.
        (free_block_from_pool) [CHERI]: Use this field to initialize
        pool->freeable_page.
        (allocate_block) [CHERI]: Return a pointer with a tight upper bound.

Attachment: 0001-ssfmalloc-Take-advantage-of-CHERI-bounds-checking.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]