[PATCH] awk: fix segfault when compiled by clang

Rob Landley rob at landley.net
Thu Jan 25 11:22:13 UTC 2024


On 1/19/24 09:41, Ron Yorston wrote:
> A 32-bit build of BusyBox using clang segfaulted in the test
> "awk assign while assign".  Specifically, on line 7 of the test
> input where the adjustment of the L.v pointer when the Fields
> array was reallocated
> 
>    	L.v += Fields - old_Fields_ptr;
> 
> was out by 4 bytes.
> 
> Rearrange to code so both gcc and clang generate code that works.

Out of morbid curiosity, why did this message a week ago wind up delivered to me
through the mailing list (I confirmed I was not personally cc'd on it), but not
wind up in the mailing list web archive?

http://lists.busybox.net/pipermail/busybox/2024-January/date.html

Rob


More information about the busybox mailing list