Subject: xsrc/15070: xman core dumps when reading some man pages
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cliff@snipe444.org>
List: netbsd-bugs
Date: 12/27/2001 16:19:11
>Number: 15070
>Category: xsrc
>Synopsis: xman core dumps when reading some man pages
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: xsrc-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 27 16:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5.2
>Organization:
>Environment:
System: NetBSD vixen 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
When using xman to read a man page in the new section(colors for Tk)
it had a segmentation fault. Reading other man pages can cause the
same problem.
>How-To-Repeat:
>Fix:
Thier was an uninitialized temporary(stack) variable.
--- misc.c.orig Tue Nov 6 19:00:17 2001
+++ misc.c Thu Dec 27 15:54:09 2001
@@ -402,7 +402,7 @@
FILE *
Format(ManpageGlobals * man_globals, char * entry)
{
- FILE * file;
+ FILE * file = 0;
#ifdef HAS_MKSTEMP
int fd;
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: