[PATCH] malloc: fix large tcache code to check for exact size match
Cupertino Miranda
cupertino.miranda@oracle.com
Mon Oct 6 08:52:44 GMT 2025
Hi Dev,
I am certain it might reproduce the error, but it is not reporting when
it actually assigns a bigger chunk to a smaller allocation.
We should be catching this type of mistakes in testing.
Also it should be an independent test specific to the reported bug.
Cheers,
Cupertino
On 06-10-2025 05:53, Dev Jain wrote:
>
> On 03/10/25 3:17 pm, Cupertino Miranda wrote:
>> Hi Dev,
>>
>> Thank you for your patch and good finding.
>> I am actually finding some bugs locally that might be related to this.
>>
>> Dev: Do you have a clear idea how to test this? Can you make a test?
>>
>>
>
> I think the bench-malloc-tcache test should be sufficient. If we
> allocate and
>
> deallocate a large chunk, that should be to and from the large tcache.
>
More information about the Libc-alpha
mailing list