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



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!

Attachment: pgpWTTk3SVFI6.pgp
Description: PGP signature



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