delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/04/11:56:03

Message-Id: <5.1.0.14.0.20010804115714.00a17590@mail.dorsai.org>
X-Sender: pjfarley AT mail DOT dorsai DOT org
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sat, 04 Aug 2001 12:00:46 -0400
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: "Peter J. Farley III" <pjfarley AT dorsai DOT org>
Subject: Re: Bash 2.05 buffer overrun problem
Cc: djgpp-workers AT delorie DOT com, snowball3 AT bigfoot DOT com, sandmann AT clio DOT rice DOT edu,
acottrel AT ihug DOT com DOT au
In-Reply-To: <2561-Sat04Aug2001184101+0300-eliz@is.elta.co.il>
References: <5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20010804111223 DOT 02918ec0 AT pop DOT dorsai DOT org>
<00cb01c11ccc$ef2fadf0$0a02a8c0 AT acceleron>
<00cb01c11ccc$ef2fadf0$0a02a8c0 AT acceleron>
<5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20010804111223 DOT 02918ec0 AT pop DOT dorsai DOT org>
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 06:41 PM 8/4/01 +0300, Eli Zaretskii wrote:
 >> Date: Sat, 04 Aug 2001 11:22:11 -0400
 >> From: "Peter J. Farley III" <pjfarley AT dorsai DOT org>
 >>
 >> Note that the ENVIRONMENT size (/E:) is allowed to be up to 
32768.  I
 >> think that is the size you need to allow for.
 >
 >That's the upper limit, but it is for all of the variables combined.
 >An individual variable's value cannot be larger than 1024 on Windows
 >9X; if you try, you will crash COMMAND.COM.

OK, I thought that was a buffer for the whole environment.  My mistake, 
and sorry for jumping in with both feet.

One other thought, based on my lack of knowledge:  Does that 1024 limit 
include the variable name?  Could there need to be an allowance for a 
name + 1024 of value?

HTH

---------------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org OR
                      pjfarley3 AT escape DOT com)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019