[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hooks for memory allocators
|
From: |
Sam James |
|
Subject: |
Re: hooks for memory allocators |
|
Date: |
Sat, 11 Nov 2023 22:07:34 +0000 |
|
User-agent: |
mu4e 1.10.8; emacs 30.0.50 |
Bruno Haible <bruno@clisp.org> writes:
> Sam James wrote:
>> I don't think this applies to gnulib, but it feels relevant enough for
>> me to mention it: for packages with their own allocator where they
>> retain a pool, it may be worth adding ASAN attributes/hooks.
>>
>> Emacs did this a little while ago in
>> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=cb242bf1514ade34ab93b1db1ea7550093ae5839
>
> Interesting; I wasn't aware of that.
>
> It may be useful in the Gnulib module 'ssfmalloc'.
Now I learned two things today ;)
Valgrind has similar annotations available, by the way.
>
> Bruno
- *alloc: Take advantage of CHERI bounds-checking, Bruno Haible, 2023/11/11
- Re: *alloc: Take advantage of CHERI bounds-checking, Paul Eggert, 2023/11/11
- Re: *alloc: Take advantage of CHERI bounds-checking, Sam James, 2023/11/11
- Re: *alloc: Take advantage of CHERI bounds-checking, Bruno Haible, 2023/11/11
- Re: *alloc: Take advantage of CHERI bounds-checking, Bruno Haible, 2023/11/11
- Re: *alloc: Take advantage of CHERI bounds-checking, Jessica Clarke, 2023/11/12