Date: Tue, 21 Sep 2004 11:21:25 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Thomas Quinot <thomas@freebsd.org> Cc: Hajimu UMEMOTO <ume@freebsd.org> Subject: Re: freeaddrinfo(NULL) Message-ID: <20040921182125.GA7566@odin.ac.hmc.edu> In-Reply-To: <20040921180746.GB49259@melusine.cuivre.fr.eu.org> References: <20040921123016.GA41677@melusine.cuivre.fr.eu.org> <ygefz5bh6lt.wl%ume@FreeBSD.org> <20040921180746.GB49259@melusine.cuivre.fr.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 21, 2004 at 08:07:46PM +0200, Thomas Quinot wrote: > * Hajimu UMEMOTO, 2004-09-21 : >=20 > > Because, the behavior of freeaddrinfo (NULL) is undefined in RFC 2553 > > nor RFC 3493. Having such an assumption is a potentially bug and > > lose portability. >=20 > That a construct has no defined meaning does not imply that we must make > every effort to break applications that (erroneously) make use of it. > Would there be any significant drawback for conforming applications > if we made our best to deploy a safety net againt buggy user programs > by not segfaulting in this case? >=20 > There are many situations where the system already detects an invalid > pointer and reports it gracefully as an error rather than triggering a > fatal signal. If it wouldn't be too evil, making freeaddrinfo die when malloc's A flag was set and succeed otherwise might be a reasionable compromise. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBUHElXY6L6fI4GtQRAn62AKCnB1ywmRnF1+Cbg9tlM2+AFJPo8QCfWWNi 2ZXUSrXjbKkN4MAWdQ+kb6s= =hisd -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040921182125.GA7566>