Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2001 13:30:42 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        freebsd-net@FreeBSD.ORG, freebsd-audit@FreeBSD.ORG
Subject:   Re: [CFR] whois(1) out-of-bound access patch
Message-ID:  <20011004133041.B64960@nagual.pp.ru>
In-Reply-To: <20011004121640.C1959@ringworld.oblivion.bg>
References:  <20011004121640.C1959@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 04, 2001 at 12:16:40 +0300, Peter Pentchev wrote:
> +			abuf = calloc(1, len + 1);
> +			if (abuf == NULL) {
> +				errno = ENOMEM;
> +				err(1, "reallocating");
> +			}

To overwrite errno set by calloc() is wrong.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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