|
|
31004e6 |
From b3e3387c94fa080342c9dadd32cf83155e4ce85b Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Nickolai Zeldovich <nickolai@csail.mit.edu>
|
|
|
a5bd9f6 |
Date: Thu, 7 Mar 2013 08:41:27 +0100
|
|
|
f74b50e |
Subject: [PATCH 197/482] * grub-core/normal/crypto.c
|
|
|
a5bd9f6 |
(read_crypto_list): Fix incorrect OOM check. *
|
|
|
a5bd9f6 |
grub-core/normal/term.c (read_terminal_list): Likewise.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 6 ++++++
|
|
|
a5bd9f6 |
grub-core/normal/crypto.c | 2 +-
|
|
|
a5bd9f6 |
grub-core/normal/term.c | 2 +-
|
|
|
a5bd9f6 |
3 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index 96527dd..ca3d603 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,3 +1,9 @@
|
|
|
a5bd9f6 |
+2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+ * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
|
|
|
a5bd9f6 |
+ OOM check.
|
|
|
a5bd9f6 |
+ * grub-core/normal/term.c (read_terminal_list): Likewise.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
Lift up core size limits on some platforms. Fix potential memory
|
|
|
a5bd9f6 |
diff --git a/grub-core/normal/crypto.c b/grub-core/normal/crypto.c
|
|
|
a5bd9f6 |
index e753dd7..2bfd67c 100644
|
|
|
a5bd9f6 |
--- a/grub-core/normal/crypto.c
|
|
|
a5bd9f6 |
+++ b/grub-core/normal/crypto.c
|
|
|
a5bd9f6 |
@@ -136,7 +136,7 @@ read_crypto_list (const char *prefix)
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
cur->name = grub_strdup (name);
|
|
|
a5bd9f6 |
- if (! name)
|
|
|
a5bd9f6 |
+ if (! cur->name)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
grub_errno = GRUB_ERR_NONE;
|
|
|
a5bd9f6 |
grub_free (cur);
|
|
|
a5bd9f6 |
diff --git a/grub-core/normal/term.c b/grub-core/normal/term.c
|
|
|
a5bd9f6 |
index ae91071..f89e5d2 100644
|
|
|
a5bd9f6 |
--- a/grub-core/normal/term.c
|
|
|
a5bd9f6 |
+++ b/grub-core/normal/term.c
|
|
|
a5bd9f6 |
@@ -389,7 +389,7 @@ read_terminal_list (const char *prefix)
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
cur->name = grub_strdup (name);
|
|
|
a5bd9f6 |
- if (! name)
|
|
|
a5bd9f6 |
+ if (! cur->name)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
grub_errno = GRUB_ERR_NONE;
|
|
|
a5bd9f6 |
grub_free (cur);
|
|
|
a5bd9f6 |
--
|
|
|
31004e6 |
1.8.2.1
|
|
|
a5bd9f6 |
|