After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311250 - GdkPangoRenderer doesn't implement some vfuncs, causes pango crash
GdkPangoRenderer doesn't implement some vfuncs, causes pango crash
Status: RESOLVED DUPLICATE of bug 307688
Product: gtk+
Classification: Platform
Component: Backend: X11
2.7.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-22 12:20 UTC by muppet
Modified: 2008-06-26 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description muppet 2005-07-22 12:20:27 UTC
GdkPangoRenderer does not implement the draw_trapezoid vfunc of PangoRenderer; in fact, it just leaves 
NULL in the vtable entry.  The same for draw_shape and draw_glyph.

pango_renderer_draw_trapezoid() does not check that the function pointer is non-null before calling it.

Thus, when you try to call pango_renderer_draw_trapezoid() on a GdkPangoRenderer, segfaulting hilarity 
ensues.
Comment 1 Owen Taylor 2005-07-22 13:42:19 UTC
Torsten already noticed this and provided patch, even.

I would suggest removing the test from the Perl test cases though ...
draw_trapezoid() is more or less "protected" ... not useful for
applications.


*** This bug has been marked as a duplicate of 307688 ***
Comment 2 muppet 2005-07-22 13:52:26 UTC
D'oh.  Sorry about the dupe.  My search-fu sucks.

To prevent future problems of this sort --- does pango have a convention for
marking protected methods, or are these special somehow?
Comment 3 Owen Taylor 2005-07-22 14:02:17 UTC
There's no real convention ... this is sort of an unusual case.
Comment 4 Jonathan Matthew 2008-06-26 13:11:40 UTC
*** Bug 409166 has been marked as a duplicate of this bug. ***