bug-bash
[Top][All Lists]
Advanced

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

Re: "Max Enviroment Variable Limit causes DoS"


From: Paul Jarc
Subject: Re: "Max Enviroment Variable Limit causes DoS"
Date: Mon, 24 Mar 2003 12:35:07 -0500
User-agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux)

"Bully Cill├│niz" <address@hidden> wrote:
>       BASH:~> export BUF=$(perl -e 'printf "A" x"1000000"')  #Currently 1
> million chars
>       BASH~> ls -la
>       bash: /bin/ls: Argument list too long
...
> A recomended fix is to have a limit on how big an enviroment
> variable should be.

Trading one error message for another.  That solves the
one-huge-variable case, but not the several-moderate-sized-variables
case.  A more helpful and less invasive change would be to make bash
warn (but still do what it's told) when exporting a variable that
pushes the total environment size over the limit - but only in
interactive mode.


paul




reply via email to

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