[PATCH] awk: fix segfault when compiled by clang

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Mar 2 16:08:51 UTC 2024


On Fri, 19 Jan 2024 15:41:17 +0000
Ron Yorston <rmy at pobox.com> 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.

Applied, thanks!


More information about the busybox mailing list