Re: mc-4.6.0-pre3 (and earlier) bug?



Hello!

> I just noticed mc is creating Segmentation fault under Linux with xterm
> wider than 261x24. Is this a compile-time limitation or bug?
>
> mc just manages to print 'Hint of the day' before dumping core.

It's a serious bug in the S-Lang library.  Function send_attr_str
overwrites the stack and then crashes:

Program received signal SIGSEGV, Segmentation fault.
(gdb) where
#0  0x080a9b6e in send_attr_str (s=0xbfff0073) at sldisply.c:1470
#1  0x71717171 in ?? ()
(gdb)

Since mc includes some files from S-Lang, it would be nice to fix at least
our code.  If the limitation is hard to remove, the sanity check in
slint.c (slang_init) should be made stricter to exit gracefully rather
than crash.

-- 
Regards,
Pavel Roskin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]