From e11645f4343512f14f46e3724150cbab3848c129 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Thu, 7 Mar 2013 08:41:27 +0100 Subject: [PATCH] * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect OOM check. * grub-core/normal/term.c (read_terminal_list): Likewise. --- ChangeLog | 6 ++++++ grub-core/normal/crypto.c | 2 +- grub-core/normal/term.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96527dd10..ca3d603d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-03-07 Nickolai Zeldovich + + * 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 Lift up core size limits on some platforms. Fix potential memory diff --git a/grub-core/normal/crypto.c b/grub-core/normal/crypto.c index e753dd799..2bfd67c8e 100644 --- a/grub-core/normal/crypto.c +++ b/grub-core/normal/crypto.c @@ -136,7 +136,7 @@ read_crypto_list (const char *prefix) } cur->name = grub_strdup (name); - if (! name) + if (! cur->name) { grub_errno = GRUB_ERR_NONE; grub_free (cur); diff --git a/grub-core/normal/term.c b/grub-core/normal/term.c index ae91071cf..f89e5d2ed 100644 --- a/grub-core/normal/term.c +++ b/grub-core/normal/term.c @@ -389,7 +389,7 @@ read_terminal_list (const char *prefix) } cur->name = grub_strdup (name); - if (! name) + if (! cur->name) { grub_errno = GRUB_ERR_NONE; grub_free (cur);