Hello everyone,

I was messing around in the GRUB command line and I found two related
integer underflows that occur on all platforms. I also found an
out-of-bounds write that occurs only on i386 systems using the VGA text
terminal. This out-of-bounds write is caused by one of the underflows,
but I've included 2 patches so that each bug is fixed.

This is my first patch submission for GRUB, so please let me know if
there is anything I should change or fix. I really appreciate feedback!

Thanks to Daniel Kiper for helping me figure out the process of
submitting a patch. :)

Ryan Cohen (2):
  vga_text: Prevent out-of-bounds writes to VGA text buffer
  cmdline: Fix two related integer underflows

 grub-core/normal/cmdline.c        | 7 ++++++-
 grub-core/term/i386/pc/vga_text.c | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

-- 
2.38.1


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to