You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
742 B

From 2dbafd9ecd2d805385d93e0eca587d473a6bc220 Mon Sep 17 00:00:00 2001
From: Andrei Borzenkov <arvidjaar@gmail.com>
Date: Sat, 20 Jun 2015 23:38:17 +0300
Subject: [PATCH 216/237] efi/chainloader: fix use after free
Found by: Coverity scan.
CID: 96714
---
grub-core/loader/efi/chainloader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c
index 2332370..ec23cf4 100644
--- a/grub-core/loader/efi/chainloader.c
+++ b/grub-core/loader/efi/chainloader.c
@@ -351,6 +351,7 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
loaded_image->device_handle = dev_handle;
grub_file_close (file);
+ file = NULL;
if (argc > 1)
{
--
2.9.3