svn commit: r236582 - head/lib/libc/stdlib
Andrey Chernov
ache at FreeBSD.ORG
Tue Jun 5 13:13:07 UTC 2012
On Tue, Jun 05, 2012 at 02:55:20PM +0200, Joerg Sonnenberger wrote:
> On Tue, Jun 05, 2012 at 04:39:01PM +0400, Andrey Chernov wrote:
> > Moreover, standard metion "unsuccessful call" case for free() where errno
> > state is totally undefined.
>
> ...which would be a programming mistake in first place and is valid as
> justification.
Not only that (I mean programming mistake in the realpath). F.e. internal
free/malloc state can be damaged by other code even earlier. But all of
this is not the case, since POSIX allows it to modify errno on _success_,
which is main reason of the change.
Please see
http://austingroupbugs.net/view.php?id=385
--
http://ache.vniz.net/
More information about the svn-src-all
mailing list