Bug 237153 - gdk_region_polygon crashes with certain graphic data input
gdk_region_polygon crashes with certain graphic data input
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gtk2 (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Matthias Clasen
Depends On:
  Show dependency treegraph
Reported: 2007-04-19 14:28 EDT by John Walicki
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2007-0549
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 12:27:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
testpoly.c (1.52 KB, text/x-csrc)
2007-06-22 14:51 EDT, Matthias Clasen
no flags Details

  None (edit)
Description John Walicki 2007-04-19 14:28:41 EDT
Description of problem:
An IBM product is experiencing issues with gdk_region_polygon crashes when
certain data input is loaded from a graphic.

gdk_region_polygon crashes on RHEL5(gtk2-2.10.4-16.el5). But works well on

Matthias has identified the problem:

* gdk/gdkregion-generic.h (GROWREGION): Handle the case	of nRects == 0 correctly.  

Version-Release number of selected component (if applicable):
RHEL5 gtk2-2.10.4-16.el5 

How reproducible:
A sample test case program was provided to Red Hat which demonstrates the problem.

Steps to Reproduce:
1. Scrolling a graphic with certain data will crash

Additional info:
Matthias posted a fix here
Comment 2 Matthias Clasen 2007-06-22 12:59:56 EDT
Fix included in gtk2-2.10.4-17.el5
Comment 4 Matthias Clasen 2007-06-22 14:51:34 EDT
Created attachment 157638 [details]

How to test:

- install gtk2-devel
- download the attached testpoly.c
- build via
  gcc -g -o testpoly testpoly.c `pkg-config --cflags --libs gtk+-2.0` 
- run it
- verify that it does not segfault (it prints out a largeish number if it
  does not crash)
Comment 7 errata-xmlrpc 2007-11-07 12:27:45 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 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.


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