mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
if no ASCII character is found to prevent crash.
This commit is contained in:
1 parent
41a85f5508
commit
5657722c3c
2 files changed
+7
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
|
||||||
|
if no ASCII character is found to prevent crash.
|
||||||
|
|
||||||
2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
|
2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
|
||||||
|
|
||||||
* grub-core/video/bitmap.c (match_extension): Ignore case.
|
* grub-core/video/bitmap.c (match_extension): Ignore case.
|
||||||
|
|||||||
@@ -945,6 +945,8 @@ calculate_normal_character_width (grub_font_t font)
|
|||||||
if (glyph->device_width > width)
|
if (glyph->device_width > width)
|
||||||
width = glyph->device_width;
|
width = glyph->device_width;
|
||||||
}
|
}
|
||||||
|
if (!width)
|
||||||
|
return 8;
|
||||||
|
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user