bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Segfault on invalid program


From: arnold
Subject: Re: [bug-gawk] Segfault on invalid program
Date: Tue, 16 Apr 2019 12:38:59 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

Thanks for the bug report.  Someone reported this recently to the
bug list; my response is the same; gawk doesn't exit after diagnosing
the first syntax error in the hope that it can diagnose more than one.
This can lead to data structures becoming corrupted, and thus the
segfault.

I have thought of a way to avoid the segfault and will work on it.

Thanks,

Arnold

Steve Kemp <address@hidden> wrote:

>   A couple of years ago I went through a phase
>  of fuzz-testing gawk.
>
>   Having seen the recent announcement of GNU
>  awk 5.0 I gave it a go, but at least one issue
>  I reported to debian remains unfixed:
>
>     https://bugs.debian.org/816277
>
>   From the bug-report this is my sample program:
>
>     gawk -e "for (i = ) in foo bar baz"
>
>   Simple patch attached to the bug-report, though
>  it might not be the best.   I appreciate invalid
>  programs are invalid, but I think a segfault is 
>  something we should prevent.
>
> Steve
> -- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]