2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
* font/font.c (find_glyph): Check whether a font is present to avoid segmentation fault.
This commit is contained in:
parent
04c7c42969
commit
57a55913e0
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* font/font.c (find_glyph): Check whether a font is present to avoid
|
||||
segmentation fault.
|
||||
|
||||
2009-07-20 Joe Auricchio <jauricchio@gmail.com>
|
||||
|
||||
* term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
|
||||
|
|
|
@ -607,6 +607,9 @@ find_glyph (const grub_font_t font, grub_uint32_t code)
|
|||
lo = 0;
|
||||
hi = font->num_chars - 1;
|
||||
|
||||
if (! table)
|
||||
return 0;
|
||||
|
||||
while (lo <= hi)
|
||||
{
|
||||
mid = lo + (hi - lo) / 2;
|
||||
|
|
Loading…
Reference in a new issue