[patch] Fix BZ 23187 -- stack overflow for many Phdr[]s
Florian Weimer
fw@deneb.enyo.de
Tue May 22 20:25:00 GMT 2018
* Adhemerval Zanella:
> What about use dynarray for this as below. The initial sizes are still
> arbitraty and should cover most common cases, but I do not have a strong
> opinion here (they have total stack usage of 384 bytes for loadcmd_list
> and 896 for phdr_list on 64 bits architectures).
dynarray is not compatible with the dl-minimal.c malloc implementation.
realloc in particular contains this:
assert (ptr == alloc_last_block);
More information about the Libc-alpha
mailing list