Re: possible stack flow in bash

From: strangeat_private
Date: Sat Jun 29 2002 - 07:50:03 PDT

  • Next message: Michael Jennings: "Re: Possible flaw in XFree?"

    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
    



    This archive was generated by hypermail 2b30 : Sat Jun 29 2002 - 10:07:39 PDT