[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH for v2.3.1] i386: kvmvapic: initialise imm32 variab
From: |
P J P |
Subject: |
[Qemu-stable] [PATCH for v2.3.1] i386: kvmvapic: initialise imm32 variable |
Date: |
Mon, 11 Apr 2016 15:56:49 +0530 |
From: Prasad J Pandit <address@hidden>
When processing Task Priorty Register(TPR) access, it could leak
automatic stack variable 'imm32' in patch_instruction().
Initialise the variable to avoid it.
Reported by: Donghai Zdh <address@hidden>
Signed-off-by: Prasad J Pandit <address@hidden>
---
hw/i386/kvmvapic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
index 18157c7..01b8393 100644
--- a/hw/i386/kvmvapic.c
+++ b/hw/i386/kvmvapic.c
@@ -393,7 +393,7 @@ static void patch_instruction(VAPICROMState *s, X86CPU
*cpu, target_ulong ip)
CPUX86State *env = &cpu->env;
VAPICHandlers *handlers;
uint8_t opcode[2];
- uint32_t imm32;
+ uint32_t imm32 = 0;
target_ulong current_pc = 0;
target_ulong current_cs_base = 0;
int current_flags = 0;
--
2.5.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] [PATCH for v2.3.1] i386: kvmvapic: initialise imm32 variable,
P J P <=