Date: Thu, 25 Dec 1997 03:53:33 +0300 (MSK) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdio vfprintf.c Message-ID: <Pine.BSF.3.96.971225035024.25451A-100000@lsd.relcom.eu.net> In-Reply-To: <199712250032.QAA09090@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Dec 1997, Andrey A. Chernov wrote: > ache 1997/12/24 16:32:19 PST > > Modified files: > lib/libc/stdio vfprintf.c > Log: > Add overflow checks: if output size becomes bigger than INT_MAX, > just return EOF More checks should be added (later?) for numeric arguments, old n=10*n+to_digit(*cp) code can be easily overflowed (wrapped around negative) many times... -- Andrey A. Chernov <ache@nietzsche.net> http://www.nagual.pp.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971225035024.25451A-100000>