bug-bash
[Top][All Lists]
Advanced

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

Re: ${par@P} can cause segmentation faults


From: Chet Ramey
Subject: Re: ${par@P} can cause segmentation faults
Date: Sat, 28 Aug 2021 12:24:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

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/



reply via email to

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