Bug 194449 - Polygon filled with a tile becomes black
Summary: Polygon filled with a tile becomes black
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gd
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ivana Varekova
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 176344 FAST4.5APPROVED
TreeView+ depends on / blocked
 
Reported: 2006-06-08 09:39 UTC by Göran Uddeborg
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0645
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-06 13:42:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test program d.c (697 bytes, text/plain)
2006-06-08 09:39 UTC, Göran Uddeborg
no flags Details
proposed patch (883 bytes, patch)
2006-08-01 08:45 UTC, Ivana Varekova
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0645 0 normal SHIPPED_LIVE gd bug fix update 2007-05-01 14:03:07 UTC

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



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