Query page
Enter new bug
| Description: |
Opened: 2007-09-06 03:58 |
Joerg Fischer wrote in the NEdit development list <develop@nedit.org>:
I updated my system recently to SUSE 10.2 that comes with openmotif
2.3.0 beta2. Since I'm too lazy to build from sources, I checked the
2.3.0 release notes, and it seemed that beta2 is identical with the
final release.
Unfortunately, a middle click on a tab (on the tab bar) lets nedit
segfault. I'm certain this didn't happen with 2.2.3. Could someone
please check this. The snapshot I have isn't too old:
5.6 [Under Development] HEAD
Apr 11, 2007
Built on: Linux, 386, GNU C
Built at: Aug 19 2007, 18:16:44
With Motif: (Untested) 2.3.0 [@(#)Motif Version 2.3.0]
Running Motif: 2.3 [unknown]
Server: The X.Org Foundation 70199902
Visual: 24-bit TrueColor (ID 0x23, Default)
Locale: en_US
------- Additional Comments From Yura Syrota 2007-09-06 03:59 -------
Peter Kovář proposed the following patch:
Index: lib/Xm/ResEncod.c
===================================================================
RCS file: /cvs/openmotif/lib/Xm/ResEncod.c,v
retrieving revision 1.9
diff -u -3 -p -r1.9 ResEncod.c
--- lib/Xm/ResEncod.c 13 Aug 2007 13:25:21 -0000 1.9
+++ lib/Xm/ResEncod.c 31 Aug 2007 12:34:03 -0000
@@ -2524,6 +2524,7 @@ processCharsetAndTextUtf8(XmStringCharSe
/* Now copy in the text */
if (ctlen > 0) {
char *text = Convert(ctext, ctlen, "UTF-8", tag);
+ if (text == NULL) return(False);
*outc = ctextConcat(*outc, *outlen, text, strlen(text));
*outlen += ctlen;
XtFree(text);
------- Additional Comments From Yura Syrota 2007-09-13 10:54 -------
Fixed as proposed.
------- Additional Comments From Ihor Hayvuk 2007-09-18 10:56 -------
*** Bug 1386 has been marked as a duplicate of this bug. ***
Query page
Enter new bug