top 3.8beta1 segfault when terminal size is >148 (netbsd)
Brought to you by:
wnl
Submitted via e-mail:
Hi,
I'm using NetBSD-current/i386 and they imported top 3.8beta1 to base system. If i call top and my screen size is >148 x some_size (doesn't influence) top segfaults:
$ top
Memory fault (core dumped)
If i resize to 148 x some_size, it runs fine.
I'm remotely logged (ssh) to the machine.
I think the problem is some buffer that is overflowing, tried to take a look at the code, but don't know much C.