Message-ID: From: "Andris Pavenis" To: djgpp-workers AT delorie DOT com Date: Tue, 26 Jan 1999 20:31:01 +0200 MIME-Version: 1.0 Content-type: Multipart/Mixed; boundary=Message-Boundary-4519 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--