[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] grub-core/normal/crypto.c: fix use after free
From: |
Satish |
Subject: |
[PATCH] grub-core/normal/crypto.c: fix use after free |
Date: |
Sun, 9 Jul 2017 16:03:43 +0530 |
This fixes the Savannah bug https://savannah.gnu.org/bugs/?51150
---
grub-core/normal/crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/normal/crypto.c b/grub-core/normal/crypto.c
index 2bfd67c..e6d345f 100644
--- a/grub-core/normal/crypto.c
+++ b/grub-core/normal/crypto.c
@@ -147,8 +147,8 @@ read_crypto_list (const char *prefix)
if (! cur->modname)
{
grub_errno = GRUB_ERR_NONE;
- grub_free (cur);
grub_free (cur->name);
+ grub_free (cur);
continue;
}
cur->next = crypto_specs;
--
2.9.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] grub-core/normal/crypto.c: fix use after free,
Satish <=