[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer Overflow
From: |
Greg Wooledge |
Subject: |
Re: Buffer Overflow |
Date: |
Tue, 12 Apr 2022 16:33:01 -0400 |
On Tue, Apr 12, 2022 at 02:45:15PM -0400, Sergio Fuentes wrote:
> Please, run the following 3 commands to reproduce the bug:
>
> echo '. ./poc.sh' > poc.sh
> chmod +x poc.sh
> bash -c './poc.sh'
You're performing an infinite recursion. Eventually, you'll overflow
the stack, and bash will crash. This is to be expected. You'd get the
same result if you wrote a C program with a recursive function that
calls itself infinitely.