A patch was submitted to the Debian BTS concerning a similar type of bug
in xcolorsel.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785307

which when applied to xcolorsel source stops xcolorsel from crashing.  The 
patch is a one line
call to XawTextSetSelection to effectively "initialize" the starting position 
to 0.

If a similar patch is added to callbacks.c at line 269 to initialize the 
starting position to 0
(with the end position set also 0 to avoid annoyingly highlighting the text in 
the document pane from the zero position to say the calculated "beg" or "end" 
position, with the now second call of XawTextSetSelection doing the actual 
highlighting of the found string)

+    XawTextSetSelection(wi->text, 0, 0)

the crash in XawTextSetSelection to go to the actual position of the
found string no longer occurs,thus curing the bug.

** Bug watch added: Debian Bug tracker #785307
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785307

** Attachment added: "Patch to initialize XawTextSetSelection starting position 
to 0"
   
https://bugs.launchpad.net/ubuntu/+source/xless/+bug/1198758/+attachment/5059415/+files/xless-1.7-callbacks.c-patch.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1198758

Title:
  xless 1.7 -- segmentation fault in libXaw using search dialog popup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xless/+bug/1198758/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to