Menu

#5 pfqueue: crahes if terminal is too wide!

open
nobody
None
5
2013-03-04
2013-03-04
No

As per debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585131

Size above 251 columns crashes the pfqueue. The user backtrace says this:

Program received signal SIGABRT, Aborted.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0xb7e5f751 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb7e62b82 in abort () from /lib/i686/cmov/libc.so.6
#3 0xb7e9618d in ?? () from /lib/i686/cmov/libc.so.6
#4 0xb7ea0281 in ?? () from /lib/i686/cmov/libc.so.6
#5 0xb7ea1ad8 in ?? () from /lib/i686/cmov/libc.so.6
#6 0xb7ea4bbd in free () from /lib/i686/cmov/libc.so.6
#7 0x0804a6c9 in show_cursor () at fe_ncurses.c:497
#8 0x0804b567 in queue_show () at fe_ncurses.c:700
#9 0x0804c6f8 in main (argc=1, argv=0xbffffc84) at fe_ncurses.c:1111
(gdb)

Alas,
#define BUF_SIZE 250
and later:
buf = (char*)malloc(BUF_SIZE);
...
free ( buf );

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.