]> git.ipfire.org Git - thirdparty/grub.git/commit
term/i386/pc/vga_text: Prevent out-of-bounds writes to VGA text buffer
authorRyan Cohen <rcohenprogramming@gmail.com>
Sat, 26 Nov 2022 22:22:51 +0000 (17:22 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 7 Dec 2022 22:38:25 +0000 (23:38 +0100)
commit108a3865f43330b581d35b9cf6ecb1e0a1da5d49
treea6433f652971796153d47891010882af72518e01
parent544fd63f0f7a6b1e270ec88c4ece2c3e76b206f5
term/i386/pc/vga_text: Prevent out-of-bounds writes to VGA text buffer

Coordinates passed to screen_write_char() did not have any checks to
ensure they are not out-of-bounds. This adds an if statement to prevent
out-of-bounds writes to the VGA text buffer.

Signed-off-by: Ryan Cohen <rcohenprogramming@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/term/i386/pc/vga_text.c