[PATCH v2] malloc: fix large tcache code to check for exact size match
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Oct 23 09:43:20 GMT 2025
Hi Dev,
> if ((mangled && REVEAL_PTR (*entry) == NULL)
>- || (!mangled && *entry == NULL))
>+ || (!mangled && *entry == NULL)
>+ || (te == NULL) || (nb != chunksize (mem2chunk (te))))
> return NULL;
That should just do the last line given that te==NULL makes the first 2 lines
redundant. You don't need the parenthesis.
Cheers,
Wilco
More information about the Libc-alpha
mailing list