2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
* kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
This commit is contained in:
parent
9c8739a456
commit
c181849b95
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
|
||||||
|
|
||||||
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* normal/menu_text.c (grub_print_message_indented): Prevent
|
* normal/menu_text.c (grub_print_message_indented): Prevent
|
||||||
|
|
|
@ -145,13 +145,16 @@ grub_parser_split_cmdline (const char *cmdline, grub_reader_getline_t getline,
|
||||||
*argc = 0;
|
*argc = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (! *rd)
|
if (! rd || !*rd)
|
||||||
{
|
{
|
||||||
if (getline)
|
if (getline)
|
||||||
getline (&rd, 1);
|
getline (&rd, 1);
|
||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!rd)
|
||||||
|
break;
|
||||||
|
|
||||||
for (; *rd; rd++)
|
for (; *rd; rd++)
|
||||||
{
|
{
|
||||||
grub_parser_state_t newstate;
|
grub_parser_state_t newstate;
|
||||||
|
|
Loading…
Add table
Reference in a new issue