source:
pkg/raul/main/pango1.0/trunk/debian/patches/01_CVE-2011-0020.patch
@
7505
| Revision 7505, 1.3 KB checked in by alanbach-guest, 2 years ago (diff) |
|---|
-
pango/pangoft2-render.c
CVE-2011-0020 Debian #610792 Launchpad #696616 GNOME #639882 diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c index bd3b7d4..42923f4 100644
a b pango_ft2_font_render_box_glyph (int width, 121 121 122 122 box->bitmap.width = width; 123 123 box->bitmap.rows = height; 124 box->bitmap.pitch = height;124 box->bitmap.pitch = width; 125 125 126 box->bitmap.buffer = g_malloc0 (box->bitmap.rows * box->bitmap.pitch); 126 box->bitmap.buffer = g_malloc0_n (box->bitmap.rows, box->bitmap.pitch); 127 128 if (G_UNLIKELY (!box->bitmap.buffer)) { 129 g_slice_free (PangoFT2RenderedGlyph, box); 130 return NULL; 131 } 127 132 128 133 /* draw the box */ 129 134 for (j = 0; j < line_width; j++) … … pango_ft2_font_render_glyph (PangoFont *font, 226 231 rendered->bitmap_left = face->glyph->bitmap_left; 227 232 rendered->bitmap_top = face->glyph->bitmap_top; 228 233 234 if (G_UNLIKELY (!rendered->bitmap.buffer)) { 235 g_slice_free (PangoFT2RenderedGlyph, rendered); 236 return NULL; 237 } 238 229 239 return rendered; 230 240 } 231 241 else … … pango_ft2_renderer_draw_glyph (PangoRenderer *renderer, 276 286 if (rendered_glyph == NULL) 277 287 { 278 288 rendered_glyph = pango_ft2_font_render_glyph (font, glyph); 289 if (rendered_glyph == NULL) 290 return; 279 291 add_glyph_to_cache = TRUE; 280 292 } 281 293
Note: See TracBrowser
for help on using the repository browser.


