mc-4.6.0-pre3 (and earlier) bug?
Björn Eriksson
bjorn at bjornen.nu
Thu Jan 23 08:36:42 UTC 2003
On Wed, Jan 22, 2003 at 10:38:54PM -0500, Pavel Roskin wrote:
> 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:
Someone thought 256 will be enough for everyone. Someone was wrong :)
#if !defined(__MSDOS_16BIT__)
# define MAX_SCREEN_SIZE 256
#else
# define MAX_SCREEN_SIZE 75
#endif
Screen_Type SL_Screen[MAX_SCREEN_SIZE];
--
//Björnen, bjorn @ bjornen . nu | http://bjornen.nu | |_).._. _ _ _ _ \\
( GPG: 3F1E41C8 5229D5F6 5D8E0149 659CDF06 8320510D | |_)|(_)| | )(-| ) )
\\ [I'm subscribed; No CC:s on list-replies please] | / //
United States of America, n: The finest plutocracy on the planet!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20030123/8624ddd2/attachment.asc>
More information about the mc-devel
mailing list