pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/36178: xfig crashes when a menu clicked on NetBSD/amd64
The following reply was made to PR pkg/36178; it has been noted by GNATS.
From: Tobias Nygren <tnn%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
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;
Home |
Main Index |
Thread Index |
Old Index