GNOME Bugzilla – Bug 311250
GdkPangoRenderer doesn't implement some vfuncs, causes pango crash
Last modified: 2008-06-26 13:11:40 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.
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 ***
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?
There's no real convention ... this is sort of an unusual case.
*** Bug 409166 has been marked as a duplicate of this bug. ***