Lines Matching refs:font
4 Subject: [PATCH] font: Do not load more than one NAME section
9 The GRUB font file can have one NAME section only. Though if somebody
10 crafts a broken font file with many NAME sections and loads it then the
19 grub-core/font/font.c | 6 ++++++
22 diff --git a/grub-core/font/font.c b/grub-core/font/font.c
24 --- a/grub-core/font/font.c
25 +++ b/grub-core/font/font.c
30 + if (font->name != NULL)
32 + grub_error (GRUB_ERR_BAD_FONT, "invalid font file: too many NAME sections");
36 font->name = read_section_as_string (§ion);
37 if (!font->name)