Hi Paul,

On Fri, Oct 18, 2024 at 04:24:32PM GMT, Paul Eggert wrote:
> [cutting the cc list down to bug-gnulib]
> 
> Surely that's not enough; we'd need to replace realloc on current glibc
> platforms, and not replace realloc on hypothetical future glibc platforms
> that behave more compatibly with the rest of the world.

That means touching the .m4 file?  I had a look at it, but I don't know
how that works.  Any hints?  :)

> Also, is reallocarray similarly afflicted? (I haven't checked.)

Yes, it seems to call the system realloc().

BTW, my implementation is buggy.  Dealing with realloc(p,0) is
non-trivial.  I think I'm going to just do realloc(p,n?:1) to jump over
the problem.  Anything else will be too error-prone.


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature

Reply via email to