Bug 4051 - Segfault caused by valid mawk (but invalid gawk) program.
Summary: Segfault caused by valid mawk (but invalid gawk) program.
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.18.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords: FIXME
Depends on:
Blocks:
 
Reported: 2011-08-08 23:34 UTC by Nagy Elemer Karoly
Modified: 2011-09-11 07:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Screenshot (2.85 KB, image/png)
2011-08-08 23:34 UTC, Nagy Elemer Karoly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nagy Elemer Karoly 2011-08-08 23:34:03 UTC
Created attachment 3535 [details]
Screenshot

echo "42" | ./awk '// {print();}' # causes segfault
echo "42" | gawk '// {print();}' # syntax error
echo "42" | mawk '// {print();}' # prints 42
With BusyBox v1.18.4 (2011-04-04 18:51:40 CDT) multi-call binary, i386 if I recall correctly.
Comment 1 Denys Vlasenko 2011-09-11 07:43:01 UTC
Fixed in git by:

commit 7b46d11582047d0dd21b547ff4a913defe646d40
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Sun Sep 11 00:30:56 2011 +0200

    awk: fix a SEGV