bug-bash
[Top][All Lists]
Advanced

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

Re: Buffer Overflow


From: Dennis Williamson
Subject: Re: Buffer Overflow
Date: Tue, 12 Apr 2022 15:32:19 -0500

On Tue, Apr 12, 2022, 3:18 PM Sergio Fuentes <
fuentes.sergio.nov2019@gmail.com> 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'
>
> The backtrace from gdb:
> gdb /bin/bash core
> ...
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00005612fcdece65 in yyparse ()
> (gdb) bt
> #0  0x00005612fcdece65 in yyparse ()
> #1  0x00005612fcde3869 in parse_command ()
> #2  0x00005612fce511fc in parse_and_execute ()
> #3  0x00005612fce50837 in ?? ()
>
> Best regards and thanks,
> fs
>

Patient: "Doctor, it hurts when I do this."

Doctor: "Don't do that."

You created a script which calls itself repeatedly. That's what happens
when you do that.

What is it that you're actually trying to do?

>


reply via email to

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