Thanks, it fixed the reproducer. Looking at the fix,
will set -m affect it? Some users use it in their
scripts. I tried to use it, but was not able to test it,
because it did not work at all - vi exited with
"can't read input" error and other applications seems to
be malfunctioning too. I did not yet have time to gather more information.
On 03/19/2013 09:26 PM, David Korn wrote:> cc:
[email protected]
> Subject: Re: [ast-developers] ksh fork bomb
> --------
>
>
> Here is a fix for the form bomb. Let me know if you have any problem.
> If you don't I will put this in the next alpha.
> ==================cut here=====================
> --- old/sh/fault.c Mon Mar 11 17:12:27 2013
> +++ new/sh/fault.c Tue Mar 19 16:22:07 2013
> @@ -473,7 +473,7 @@
> if(pp && pp->mode>1)
> cursig = -1;
> #ifdef SIGTSTP
> - if(shp->trapnote&SH_SIGTSTP)
> + if((shp->trapnote&SH_SIGTSTP) && sh_isoption(shp,SH_MONITOR))
> {
> /* ^Z detected by the shell */
> shp->trapnote = 0;
> ==================cut here=====================
>
> David Korn
> [email protected]
>
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers