Fix invalid free
Andreas Schwab
schwab@suse.de
Tue Feb 22 14:38:00 GMT 2005
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."
More information about the Libc-hacker
mailing list