Subject: xsrc/30808: xsm : NULL pointer with sessionsLocked
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <xorix@free.fr>
List: netbsd-bugs
Date: 07/21/2005 19:39:00
>Number: 30808
>Category: xsrc
>Synopsis: xsm : NULL pointer with sessionsLocked
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: xsrc-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 21 19:39:00 +0000 2005
>Originator: Karim Ayad
>Release: NetBSD 2.0.2
>Organization:
>Environment:
NetBSD diablo.xorix.corp 2.0_STABLE NetBSD 2.0_STABLE (GENERIC) #0: Wed Jul 20 10:23:13 CEST 2005
>Description:
Once that xsm is launched, clicked on "chooseSessionListWidget" and xsm causes a segmentation fault.
>How-To-Repeat:
Once that xsm is launched, clicked on "chooseSessionListWidget".
>Fix:
--- /usr/oxsrc/xc/programs/xsm/choose.c 2005-07-21 19:42:44.000000000 +0200
+++ /usr/xsrc/xc/programs/xsm/choose.c 2005-07-21 20:12:08.000000000 +0200
@@ -209,7 +209,7 @@
Bool highlight;
{
- if (number >= 0)
+ if (sessionsLocked && number >= 0)
{
Bool locked = sessionsLocked[number];