[PATCH] malloc: fix undefined behavior in obstack.h [BZ #32393]
Paul Eggert
eggert@cs.ucla.edu
Thu May 8 18:46:30 GMT 2025
On 2025-05-08 02:52, Sam James wrote:
> Paul, do you plan on pushing this?
No, because I found some problems with it. It didn't work in the Gnulib
context, and there are nearby instances of other undefined behavior that
normally work on typical machines but won't work on picky platforms and
in theory might not even work on typical platforms.
I fixed all these problems in Gnulib recently.
What I was planning to do at some point was to sync Gnulib obstack to
Glibc, as in the attached draft patch. Would this work for you?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-malloc-fix-undefined-behavior-in-obstack.h-BZ-32393.patch
Type: text/x-patch
Size: 46607 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250508/ae18de2f/attachment-0001.bin>
More information about the Libc-alpha
mailing list