Vulnerability Development mailing list archives

Re: possible stack flow in bash


From: strange () nsk yi org
Date: Sat, 29 Jun 2002 15:50:03 +0100

On Fri, Jun 28, 2002 at 04:03:27PM +0000, Junior wrote:
hi.
Stack in bash stows observing possible.

Step 1 - bash-2.05a# ls "!x123456"
  ...
bash: /bin/ls: Argument list too long
Step 2 - bash-2.05a# ls "!x123456"
  ...
bash: xrealloc: cannot reallocate 134322944 bytes (0 bytes allocated)

Welcome to Linux 2.4.18 (tty8)
  ...

I've been unable to reproduce the "!x123456" and its results, but it
doesn't seem a stack overflow. It seems that you've just run out of
memory, your shell has just tried to allocate some more 134 megabytes of
memory, couldn't, and bailed.

I would be more worried if you didn't get an error from the shell and just
a SIGSEGV or SIGILL.

Regards,
Luciano Rocha


Current thread: