Subject: Re: pkg/36178: xfig crashes when a menu clicked on NetBSD/amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Tobias Nygren <tnn@NetBSD.org>
List: pkgsrc-bugs
Date: 04/20/2007 18:00:05
The following reply was made to PR pkg/36178; it has been noted by GNATS.

From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/36178: xfig crashes when a menu clicked on NetBSD/amd64
Date: Fri, 20 Apr 2007 19:59:01 +0200

 Crash is due to a null pointer deref in x11/Xaw3d.
 Patch works around it. Real cause still unknown.
 
 --- xc/lib/Xaw3d/SmeLine.c.orig 2007-04-18 12:10:15.000000000 +0200
 +++ xc/lib/Xaw3d/SmeLine.c
 @@ -217,7 +217,7 @@ Region region;
      SmeLineObject entry = (SmeLineObject) w;
      SimpleMenuWidget smw = (SimpleMenuWidget) XtParent (w);
      ThreeDWidget tdw = (ThreeDWidget) smw->simple_menu.threeD;
 -    Dimension s = tdw->threeD.shadow_width;
 +    Dimension s = tdw?tdw->threeD.shadow_width:0;
      int y = entry->rectangle.y +
             (int)(entry->rectangle.height - entry->sme_line.line_width) / 2;