www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
Date: | Sat, 19 Jan 2002 14:38:59 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
Message-Id: | <8582-Sat19Jan2002143859+0200-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <3C495559.C01A23AF@phekda.freeserve.co.uk> (message from Richard |
Dawe on Sat, 19 Jan 2002 11:15:37 +0000) | |
Subject: | Re: env.exe crash - reproducible test program |
References: | <10201180538 DOT AA24590 AT clio DOT rice DOT edu> <3C495559 DOT C01A23AF AT phekda DOT freeserve DOT co DOT uk> |
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 |
> Date: Sat, 19 Jan 2002 11:15:37 +0000 > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> > > This use of putenv() seems to violate the requirements of the putenv > code, viz the comment at the top of src/libc/compat/stdlib/putenv.c: That's true, but putenv.c does have safeguards against such uses, which should have kicked in. Can you see why didn't they? Btw, the code Charles posted is an exact replica of what GNU `env' (from Sh-utils) does at the beginning of its `main' function, so that code did work at some point, and should continue to work if we want `env' not to crash.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |