mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-12-01 00:48:18 +00:00
6b2dd0f731
Signed-off-by: Peter Jones <pjones@redhat.com>
25 lines
749 B
Diff
25 lines
749 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: AppChecker <appchecker>
|
|
Date: Sun, 9 Jul 2017 21:57:35 +0200
|
|
Subject: [PATCH] crypto: Fix use after free.
|
|
|
|
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 2bfd67c8ef3..e6d345f3345 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;
|