Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2012 17:13:05 +0400
From:      Andrey Chernov <ache@FreeBSD.ORG>
To:        Joerg Sonnenberger <joerg@britannica.bec.de>
Cc:        svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG, Dimitry Andric <dim@FreeBSD.ORG>
Subject:   Re: svn commit: r236582 - head/lib/libc/stdlib
Message-ID:  <20120605131305.GF13306@vniz.net>
In-Reply-To: <20120605125520.GA12045@britannica.bec.de>
References:  <201206042134.q54LYoVJ067685@svn.freebsd.org> <4FCDBE69.6080906@FreeBSD.org> <20120605123901.GA13306@vniz.net> <20120605125520.GA12045@britannica.bec.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120605131305.GF13306>