Re: [PATCH 3/5] font: Reject fonts with negative max_char_width or max_char_height

2022-12-13 Thread Daniel Kiper
On Mon, Dec 05, 2022 at 07:29:38PM +0800, Zhang Boyang wrote: > If max_char_width or max_char_height is negative, bad values might be > propagated by grub_font_get_max_char_width() or > grub_font_get_max_char_height(). Prevent this from happening. > > Signed-off-by: Zhang Boyang Reviewed-by: Dani

[PATCH 3/5] font: Reject fonts with negative max_char_width or max_char_height

2022-12-05 Thread Zhang Boyang
If max_char_width or max_char_height is negative, bad values might be propagated by grub_font_get_max_char_width() or grub_font_get_max_char_height(). Prevent this from happening. Signed-off-by: Zhang Boyang --- grub-core/font/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif