From: Vladimir 'phcoder' Serbinenko Date: Fri, 2 Jul 2010 16:25:42 +0000 (+0200) Subject: * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing X-Git-Tag: 1.99~766 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=942a10c71e5de8a106344b91deae991cd3e30a44;p=thirdparty%2Fgrub.git * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing NULL font. --- diff --git a/ChangeLog b/ChangeLog index dcdb3a7ae..f26c62431 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-07-02 Vladimir Serbinenko + + * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing + NULL font. + 2010-07-02 Colin Watson * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper diff --git a/font/font.c b/font/font.c index 9a89cadc5..89e993146 100644 --- a/font/font.c +++ b/font/font.c @@ -1029,6 +1029,8 @@ grub_font_get_glyph_with_fallback (grub_font_t font, grub_uint32_t code) next = node->next; glyph = grub_font_get_glyph_internal (curfont, code); + if (glyph && !font) + return glyph; if (glyph) { int d;