Re: undefined-behavior obstack.c:139
Eric Blake <[email protected]> Fri, 4 Apr 2025 08:37:35 -0500
| Newsgroups | gmane.comp.gnu.m4.bugs |
|---|---|
| Message-ID | <o3miprt4o443vyjawm43265nn3ohpxunt4can2ongrlnveuqyy@m2hfcy3mctmd> |
On Wed, Feb 22, 2023 at 09:04:05AM +0000, Alexey Palienko wrote: > Hi! > First of all, I would like to thank you for your contribution to the open source! > > I found some problem with m4 1.4.18. It has been built by clang 13 with "-g -fsanitize=address,undefined -fno-omit-frame-pointer -fsanitize-address-use-after-scope -fno-sanitize-recover=all" > And we have an error: > > # /home/docker/.conan/data/m4/latest/_/_/package/3421fde5744f1eadef515027cbcbb9a8fbcd667c/bin/m4 > obstack.c:139:35: runtime error: applying non-zero offset 107820858999056 to null pointer > SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior obstack.c:139:35 in > > I think, it is so and for 1.4.19 Bruno Haible supplied a fix for this, which will appear in the upcoming 1.4.20. -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org