[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash regexp parsing would benefit from safe recursion limit
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: Bash regexp parsing would benefit from safe recursion limit |
Date: |
Wed, 30 Mar 2022 19:56:09 +0200 |
On Wed, Mar 30, 2022 at 7:47 PM Martin Schulte <gnu@schrader-schulte.de>
wrote:
> Hello Willi!
>
> > Fix:
> > Count the stack frames during recursive parsing and emit error before
> stack
> > resources are entirely consumed.
>
> What exactly should happen and what is the benefit of this solution?
>
i guess it wont segfault anymore ..
>
> BTW: I tried
>
> trap 'echo "Ohohoh..."; exit 1;' SIGSEGV
>
> but the signal wasn't caught (which didn't really surprise me).
>
> Best regards
>
> Martin
>
>