2017-06-16 19:31:32 +00:00
|
|
|
From a0fe0c26aa8a1c0ad66d9527611bd726b849c623 Mon Sep 17 00:00:00 2001
|
|
|
|
From: AppChecker <appchecker>
|
|
|
|
Date: Sun, 9 Jul 2017 21:57:35 +0200
|
2018-01-17 22:04:09 +00:00
|
|
|
Subject: [PATCH 047/198] crypto: Fix use after free.
|
2017-06-16 19:31:32 +00:00
|
|
|
|
|
|
|
Reported by: AppChecker
|
|
|
|
Transformed to patch by: Satish Govindarajan
|
|
|
|
---
|
|
|
|
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 2bfd67c8e..e6d345f33 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;
|
|
|
|
--
|
2018-01-17 20:40:19 +00:00
|
|
|
2.14.3
|
2017-06-16 19:31:32 +00:00
|
|
|
|