Re: possible stack flow in bash

From: FBO (fbo2at_private)
Date: Fri Jun 28 2002 - 22:39:26 PDT

  • Next message: Edsel Adap: "Re: Possible flaw in XFree?"

    On Fri, Jun 28, 2002 at 04:03:27PM +0000, Junior wrote:
    > hi.
    Hi,
    
    > Stack in bash stows observing possible.
    > 
    > Step 1 - bash-2.05a# ls "!x123456"
    > ...exitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexite
    > xitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexitexite
    > xitexitexitexitexitexitexitexitexitexit"
    > bash: /bin/ls: Argument list too long
    > 
    > Step 2 - bash-2.05a# ls "!x123456"
    > ...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    > bash: xrealloc: cannot reallocate 134322944 bytes (0 bytes allocated)
    > 
    
    I'm lazy so I didn't type 123456 "!"s manually :-) :
    
    bash-2.05a$ ls `perl -e 'print "!" x 123456'`
    ...
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!": Der Dateiname ist zu lang
    
    It seems that I can run this line as often as a want - without being able
    to reproduce your results.
    
    FBO
    



    This archive was generated by hypermail 2b30 : Sat Jun 29 2002 - 09:49:02 PDT