Bug 1328578

Summary: Fix request length calculation for XRenderCompositeText32. Causing hang in Java apps utilizing libXrender
Product: Red Hat Enterprise Linux 6 Reporter: Robert Bost <rbost>
Component: libXrenderAssignee: Benjamin Tissoires <btissoir>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.7CC: alanm, cww, jkoten, mkolaja, phracek, salmy, tpelka
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libXrender-0.9.8-3.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1330653 (view as bug list) Environment:
Last Closed: 2017-03-21 12:04:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1269194, 1330653    
Attachments:
Description Flags
reproducer none

Description Robert Bost 2016-04-19 18:21:30 UTC
Created attachment 1148710 [details]
reproducer

Description of problem: Need to backport commit from upstream libXrender 0.9.9. 

Original bug report for Java:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8028722

Upstream commit resolving issue:
https://cgit.freedesktop.org/xorg/lib/libXrender/commit/?id=7887382e59b7a06d6b02501205d543fdf76c8249


Version-Release number of selected component (if applicable): libXrender-0.9.8-2.1.el6


How reproducible: Always


Steps to Reproduce:
1. Install libXrender-0.9.8-2.1.el6 and java-1.7.0 (Either Oracle or OpenJDK).
2. javac char254.java
3. java -Dsun.java2d.xrender=True char254

Actual results: Hangs when rendering


Expected results: Render 254 characters


Additional info: 

See attached char254.java for reproducer. I installed libXrender-0.9.9 from an upstream source (ftp://rpmfind.net/linux/fedora/linux/releases/23/Everything/i386/os/Packages/l/libXrender-0.9.9-2.fc23.i686.rpm) and then re-ran reproducer and everything renders fine.

Comment 11 errata-xmlrpc 2017-03-21 12:04:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0807.html