Red Hat Bugzilla – Bug 453722
(open)motif apprications dump core in non-UTF8 environment.
Last modified: 2009-06-20 00:45:35 EDT
Description of problem:
In non-UTF8 environment, (open)motif apprications dump core when
entry in menu bar was clicked with button2 (middle button of mouse).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.rebuild openmotif demos
2.set any non-UTF-8 locale to LC_ALL
3.run some demo and click any menu bar entry with button2
Valgrind found a bug in _XmLabelConvert() on openmotif-2.3.0/lib/Xm/Label.c.
Array "targs" has 5 room, but targs and targs were set
because of UTF8_SUPPORTED macro.
This has been fixed upstream:
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Thank you for your reply. I have a question.
The upstream fix makes "targs" size to 6, but _XmLabelConvert() looks
being able to set targs. Is it ok?
I also thought about that and contacted upstream.
Upstream agrees. The size of targs is now 7:
Oh! ... ok, thank you for your support.
Please apply it for the next rpm release.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.