Skip to content
Snippets Groups Projects
Commit 96409d67 authored by Zhang Boyang's avatar Zhang Boyang Committed by Steve McIntyre
Browse files

font: Fix integer overflow in ensure_comb_space()


In fact it can't overflow at all because glyph_id->ncomb is only 8-bit
wide. But let's keep safe if somebody changes the width of glyph_id->ncomb
in the future. This patch also fixes the inconsistency between
render_max_comb_glyphs and render_combining_glyphs when grub_malloc()
returns NULL.

Signed-off-by: default avatarZhang Boyang <zhangboyang.id@gmail.com>
Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
parent abce8a8f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment