Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2007 14:46:55 +0200
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        Stanislav Sedov <stas@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, pav@FreeBSD.org, cvs-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/contrib/top top.X top.c top.h src/usr.bin/top machine.c
Message-ID:  <20070414124654.GB1687@zaphod.nitro.dk>
In-Reply-To: <20070414154246.89ad2946.stas@FreeBSD.org>
References:  <200704141016.l3EAGqIs023798@repoman.freebsd.org> <1176546388.54822.11.camel@ikaros.oook.cz> <1176546959.54822.14.camel@ikaros.oook.cz> <20070414154246.89ad2946.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007.04.14 15:42:46 +0400, Stanislav Sedov wrote:
> On Sat, 14 Apr 2007 12:35:59 +0200
> Pav Lucistnik <pav@FreeBSD.org> mentioned:
> >
> > Also, is the width cut-off technical problem, or is it fixable?
> > See http://people.freebsd.org/~pav/top.png for what I mean.
> >
> 
> Well, they allocate a static buffer of 128 byte lenght, so the result
> doesn't fit into it. Also, there's buffer overrun, since sprintf is
> used, not snprintf.

So, if a user sets a very long proctitle now and some other user runs
top with the new feature the buffer will overflow?

-- 
Simon L. Nielsen



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