[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: ${par@P} can cause segmentation faults
From: Chet Ramey <chet.ramey () case ! edu>
Date: 2021-08-28 16:24:33
Message-ID: 39b5eb15-6ac5-54b8-23a4-5ea15dc97398 () case ! edu
[Download RAW message or body]
On 8/28/21 4:07 AM, Emanuele Torre wrote:
> Bash Version: 5.1
> Patch Level: 8
> Release Status: release
>
> Description:
>
> PS1=\${PS1@P}
>
> makes bash segfault in interactive shells.
>
> a=\${a@P};${a@P}
>
> makes bash segfault also in non-interactive shells.
Yes. If you set up and execute an infinitely recursive expansion, you're
eventually going to run out of stack or data space and crash.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic