[PATCHv3] malloc: Make sure tcache_key is odd enough
Samuel Thibault
samuel.thibault@ens-lyon.org
Mon Aug 4 11:32:42 GMT 2025
Cupertino Miranda, le lun. 04 août 2025 12:28:01 +0100, a ecrit:
> Anyway, I thought the purpose was to make it harder to identify where the
> linked lists are in memory,
No, the purpose is not for security, but safety: if we try to free
something that isn't part of the linked list, we hopefully detect it
because whatever happens to be there doesn't have the expected value.
Samuel
More information about the Libc-alpha
mailing list