[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#785307: xcolorsel: Crash in Grab color



Package: xcolorsel
Version: 1.1a-18
Severity: normal
Tags: patch

If I start xcolorsel and click "Grab color", the program crashes with a SEGV as
soon as I pick a color and click.

I could not understand why it happens, but apparently the attached patch works
around the problem.

best regards
	g1

-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages xcolorsel depends on:
ii  libc6     2.19-18
ii  libice6   2:1.0.9-1+b1
ii  libsm6    2:1.2.2-1+b1
ii  libx11-6  2:1.6.2-3
ii  libxext6  2:1.3.3-1
ii  libxmu6   2:1.1.2-1
ii  libxpm4   1:3.5.11-1+b1
ii  libxt6    1:1.1.4-1+b1
ii  xaw3dg    1.5+E-18.2

xcolorsel recommends no packages.

xcolorsel suggests no packages.

-- no debconf information
diff -rwub old/RgbText.c new/RgbText.c
--- old/RgbText.c	2015-05-14 16:06:06.375622569 +0200
+++ new/RgbText.c	2015-05-14 16:06:32.239774231 +0200
@@ -1116,6 +1116,7 @@
 	start+=1+myself(w).rgb_text.tile_width;
 	end=(strchr(ptr,'\n')-myself(w).rgb_text.asciirep);
 	/*Display selection:*/
+	XawTextSetSelection(w, 0, end);
 	XawTextSetSelection(w, start, end);
 	XawTextSetInsertionPoint(w, end);
 	/*Set cursor*/

Reply to: