busybox/editors
Ron Yorston e1a6874106 awk: fix segfault when compiled by clang
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.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2024-03-02 17:03:37 +01:00
..
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
awk.c awk: fix segfault when compiled by clang 2024-03-02 17:03:37 +01:00
cmp.c Update applet size estimates 2023-07-10 17:25:21 +02:00
diff.c diff: code shrink 2021-02-22 19:00:07 +01:00
ed.c Update applet size estimates 2023-07-10 17:25:21 +02:00
patch.c Update applet size estimates 2023-07-10 17:25:21 +02:00
patch_bbox.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
patch_toybox.c Update applet size estimates 2023-07-10 17:25:21 +02:00
sed.c sed: check errors writing file with sed -i 2024-01-02 00:58:56 +01:00
sed1line.txt add sed mini-doc 2007-11-13 17:13:31 +00:00
sed_summary.htm doc: add info about sed s/.../.../I modifier 2008-03-01 19:29:56 +00:00
vi.c Update applet size estimates 2023-07-10 17:25:21 +02:00