mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
* 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:
1 parent
774683685f
commit
e11645f434
3 files changed
+8
-2
No files matched your search
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user