bug-bash
[Top][All Lists]
Advanced

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

Re: Buffer Overflow


From: Chet Ramey
Subject: Re: Buffer Overflow
Date: Tue, 12 Apr 2022 16:31:59 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 4/12/22 2:45 PM, Sergio Fuentes wrote:
> Hello,
> 
> Please, run the following 3 commands to reproduce the bug:
> 
> echo '. ./poc.sh' > poc.sh
> chmod +x poc.sh
> bash -c './poc.sh'

You've created infinite recursion using `.' and run yourself out of stack
space. This isn't a bug.

You can set the SOURCENEST_MAX definition in config-top.h if you want a
bash that caps this recursion.

-- 
``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]