Bug 194449

Summary: Polygon filled with a tile becomes black
Product: Red Hat Enterprise Linux 4 Reporter: Göran Uddeborg <goeran>
Component: gdAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: benl, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0645 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-06 13:42:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 176344, 201655    
Attachments:
Description Flags
Test program d.c
none
proposed patch none

Description Göran Uddeborg 2006-06-08 09:39:58 UTC
Description of problem:
Using the function gdImageFilledPolygon() with a tile creates a black field. 
See the attached program for details.

Version-Release number of selected component (if applicable):
gd-2.0.28-4.4E.1  (Also seen for gd-2.0.33-6.2 on FC5.  Does not happen with
gd-1.8.4-12.3.1 on RHEL3.  Happens for both i386 and x86_64.)

How reproducible:
Every time.

Steps to Reproduce:
1. cc d.c -o d -lgd # d.c is the attached test program
2. ./d
3. display bull.png

Actual results:
A black triangle in a white field.

Expected results:
A blue triengle with red lines in a white field.

Additional info:
FWIW: gd 2.0.33 we have built locally on Solaris works correctly.

Comment 1 Göran Uddeborg 2006-06-08 09:39:58 UTC
Created attachment 130727 [details]
Test program d.c

Comment 2 Jitka Kozana 2006-06-15 07:10:04 UTC
Succesfully reproduced.

Comment 3 Ivana Varekova 2006-06-15 07:19:09 UTC
This problem should be fixed in the test version - gd-2.0.28-5.4E.test
(http://people.redhat.com/varekova/gd-2.0.28-5.4E.test.i386.rpm, 
http://people.redhat.com/varekova/gd-devel-2.0.28-5.4E.test.i386.rpm, 
http://people.redhat.com/varekova/gd-2.0.28-5.4E.test.src.rpm).
Could you please test this version?
If there is any problem please attach your comment here. 

Comment 4 Göran Uddeborg 2006-06-17 18:40:22 UTC
The new version works fine for us too.

Comment 5 Ivana Varekova 2006-08-01 08:45:05 UTC
Created attachment 133382 [details]
proposed patch

Comment 13 Red Hat Bugzilla 2006-09-06 13:42:31 UTC
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 the 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.

http://rhn.redhat.com/errata/RHBA-2006-0645.html