mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
* normal/main.c (grub_normal_read_line): Fix off-by-one
buffer overflow..
This commit is contained in:
1 parent
13b33fba6f
commit
08806a54c5
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* normal/main.c (grub_normal_read_line): Fix off-by-one
|
||||||
|
buffer overflow.
|
||||||
|
|
||||||
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* normal/main.c (grub_normal_execute): Replace "parser.sh" with
|
* normal/main.c (grub_normal_execute): Replace "parser.sh" with
|
||||||
|
|||||||
+1
-1
@@ -524,7 +524,7 @@ static grub_err_t
|
|||||||
grub_normal_read_line (char **line, int cont)
|
grub_normal_read_line (char **line, int cont)
|
||||||
{
|
{
|
||||||
grub_parser_t parser = grub_parser_get_current ();
|
grub_parser_t parser = grub_parser_get_current ();
|
||||||
char prompt[sizeof("> ") - 1 + grub_strlen (parser->name)];
|
char prompt[sizeof("> ") + grub_strlen (parser->name)];
|
||||||
|
|
||||||
grub_sprintf (prompt, "%s> ", parser->name);
|
grub_sprintf (prompt, "%s> ", parser->name);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user