Red Hat Bugzilla – Bug 237153
gdk_region_polygon crashes with certain graphic data input
Last modified: 2007-11-30 17:07:43 EST
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):
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
Matthias posted a fix here
Fix included in gtk2-2.10.4-17.el5
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)
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.