www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/26/14:09:47

Message-ID: <B0000067207@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: djgpp-workers AT delorie DOT com
Date: Tue, 26 Jan 1999 20:31:01 +0200
MIME-Version: 1.0
Subject: Problem with FSDB (patch included)
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

--Message-Boundary-4519
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

There is problems to use FSDB when some of external symbols have very long 
names (for example I used class string from STL). I got buffer overrun there and 
as the result FSDB either crashed or were unusable anyway.

The following patch "pushes more far" this problem by enlarging string. Of 
course we'll met the same problem when length of some symbol will exceed
8K ...

Andris




--Message-Boundary-4519
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'fullscr.c.diff'

*** src/debug/fsdb/fullscr.c~2	Tue Jan 12 20:03:36 1999
--- src/debug/fsdb/fullscr.c	Tue Jan 26 19:07:32 1999
***************
*** 1363,1369 ****
  static void
  redraw (int first)
  {
!   char *buf = alloca (cols);
  
    debug_screen ();
    screen_attr = ScreenAttrib = screen_attr_normal;
--- 1363,1369 ----
  static void
  redraw (int first)
  {
!   char *buf = alloca (8192);
  
    debug_screen ();
    screen_attr = ScreenAttrib = screen_attr_normal;

--Message-Boundary-4519--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019