* Fix invalid free
@ 2005-02-22 14:38 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2005-02-22 14:38 UTC (permalink / raw)
To: libc-hacker
This is broken both in HEAD and in 2.3 branch.
Andreas.
2005-02-22 Andreas Schwab <schwab@suse.de>
* posix/execvp.c (execvp): Fix invalid free.
--- posix/execvp.c.~1.23.~ 2005-01-29 01:31:23.000000000 +0100
+++ posix/execvp.c 2005-02-22 13:59:32.000000000 +0100
@@ -189,7 +189,7 @@ execvp (file, argv)
__set_errno (EACCES);
free (script_argv);
- free (name);
+ free (name - pathlen);
if (path_malloc)
free (path);
}
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-22 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 14:38 Fix invalid free Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).