cvs commit: src/contrib/top top.X top.c top.h src/usr.bin/top machine.c

Simon L. Nielsen simon at FreeBSD.org
Sat Apr 14 12:46:58 UTC 2007


On 2007.04.14 15:42:46 +0400, Stanislav Sedov wrote:
> On Sat, 14 Apr 2007 12:35:59 +0200
> Pav Lucistnik <pav at 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


More information about the cvs-all mailing list