grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/2] Fix command line underflows and out-of-bounds write


From: Ryan Cohen
Subject: [PATCH 0/2] Fix command line underflows and out-of-bounds write
Date: Sat, 26 Nov 2022 17:22:50 -0500

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]