]> git.ipfire.org Git - thirdparty/grub.git/commit
font: Reject glyphs exceeds font->max_glyph_width or font->max_glyph_height
authorZhang Boyang <zhangboyang.id@gmail.com>
Wed, 3 Aug 2022 11:45:33 +0000 (19:45 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 14 Nov 2022 19:24:39 +0000 (20:24 +0100)
commitf6b6236077f059e64ee315f2d7acb8fa4eda87c5
tree0af84be57274f7c3576b86d6680f6668cc6b0f4d
parent113142939172bda9759d4d2e5a053911821d2faf
font: Reject glyphs exceeds font->max_glyph_width or font->max_glyph_height

Check glyph's width and height against limits specified in font's
metadata. Reject the glyph (and font) if such limits are exceeded.

Signed-off-by: Zhang Boyang <zhangboyang.id@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/font/font.c