Bug 453722 - (open)motif apprications dump core in non-UTF8 environment.
(open)motif apprications dump core in non-UTF8 environment.
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openmotif (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: Thomas Woerner
Depends On:
  Show dependency treegraph
Reported: 2008-07-02 04:09 EDT by Akira YOSHIYAMA
Modified: 2009-06-20 00:45 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 17:17:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Akira YOSHIYAMA 2008-07-02 04:09:19 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):

How reproducible:

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
Actual results:
program aborted.

Expected results:
no problem.

Additional info:
Valgrind found a bug in _XmLabelConvert() on openmotif-2.3.0/lib/Xm/Label.c.
Array "targs[]" has 5 room, but targs[5] and targs[6] were set 
because of UTF8_SUPPORTED macro.
Comment 1 Thomas Woerner 2008-07-02 09:14:51 EDT
This has been fixed upstream:
Comment 2 RHEL Product and Program Management 2008-07-02 09:53:34 EDT
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
Comment 3 Akira YOSHIYAMA 2008-07-04 02:51:05 EDT
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[6]. Is it ok?
Comment 4 Thomas Woerner 2008-07-04 06:40:43 EDT
I also thought about that and contacted upstream.
Comment 6 Thomas Woerner 2008-07-09 11:20:18 EDT
Upstream agrees. The size of targs is now 7:

Comment 7 Akira YOSHIYAMA 2008-07-10 08:23:34 EDT
Oh! ... ok, thank you for your support.
Please apply it for the next rpm release.
Comment 15 errata-xmlrpc 2009-01-20 17:17:09 EST
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.


Note You need to log in before you can comment on or make changes to this bug.