[PATCH] misc: Fix out-of-bounds array write in tdelete (bug 34506)

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Aug 13 15:46:32 GMT 2026



> Em 13 de ago. de 2026, à(s) 12:08, Florian Weimer <fweimer@redhat.com> escreveu:
> 
> * Adhemerval Zanella Netto:
> 
>> I think we can infer this without the using internal definitions:
>> 
>>  enum { ptr_bits = CHAR_BIT * sizeof (void *),
>>         stacksize = 2 * ptr_bits + 1 };
> 
> So perhaps this?
> 
>  enum { stacksize = 2 * UINTPTR_WIDTH + 1 };

Indeed, forgot about this constant. LGTM, thanks.

> 
> Thanks,
> Florian
> 


More information about the Libc-alpha mailing list