Date: 15 Jul 2002 13:12:26 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Bruce Evans <bde@zeta.org.au> Cc: Giorgos Keramidas <keramida@FreeBSD.ORG>, <freebsd-audit@FreeBSD.ORG> Subject: Re: bin/ln & WARNS=5 Message-ID: <xzp65zh9rdx.fsf@flood.ping.uio.no> In-Reply-To: <20020715202126.S40071-100000@gamplex.bde.org> References: <20020715202126.S40071-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes: > That would break the possibly-intentional check for snprintf() failing. > (size_t)-1 >= sizeof(path), but !(-1 >= (int)sizeof(path)). Casting a value which one knows may be negative to an unsigned type is IMHO stupid. If the check is intentional, it should be done explicitly. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp65zh9rdx.fsf>