* grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
OOM check. * grub-core/normal/term.c (read_terminal_list): Likewise.
This commit is contained in:
parent
774683685f
commit
e11645f434
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
|
||||||
|
|
||||||
|
* grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
|
||||||
|
OOM check.
|
||||||
|
* grub-core/normal/term.c (read_terminal_list): Likewise.
|
||||||
|
|
||||||
2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Lift up core size limits on some platforms. Fix potential memory
|
Lift up core size limits on some platforms. Fix potential memory
|
||||||
|
|
|
@ -136,7 +136,7 @@ read_crypto_list (const char *prefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
cur->name = grub_strdup (name);
|
cur->name = grub_strdup (name);
|
||||||
if (! name)
|
if (! cur->name)
|
||||||
{
|
{
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
grub_free (cur);
|
grub_free (cur);
|
||||||
|
|
|
@ -389,7 +389,7 @@ read_terminal_list (const char *prefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
cur->name = grub_strdup (name);
|
cur->name = grub_strdup (name);
|
||||||
if (! name)
|
if (! cur->name)
|
||||||
{
|
{
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
grub_free (cur);
|
grub_free (cur);
|
||||||
|
|
Loading…
Reference in a new issue