tags 318546 patch fixed-upstream thanks On Sun, Apr 09, 2006 at 10:15:49PM +0200, gregor herrmann wrote: > On Wed, Mar 15, 2006 at 10:58:22AM +0100, Roland Stigge wrote: > > > I can reproduce this both on my development machine's current sid > > environment and in a current pbuilder i386 chroot. > > I can reproduce this behaviour too on i386 with version 0.39-1. > > Good news: The "new" (new as in 2003) upstream version builds on my > system:
I believe this is an off-by-one error in OS/Linux.c. For me it only shows up with CFLAGS=-O2. Patch attached. The bug is indeed fixed in upstream 0.40. Cheers, -- Niko Tyni [EMAIL PROTECTED]
--- os/Linux.c 2006/04/19 21:22:14 1.1 +++ os/Linux.c 2006/04/19 21:22:18 @@ -132,7 +132,7 @@ char pctmem[32]; char pctcpu[32]; char cbuf[1024]; - static char format[F_LASTFIELD + 1]; + static char format[F_LASTFIELD + 2]; size_t pagesize = getpagesize();