File 0441-x86-cpu-increase-model_id-array-siz.patch of Package qemu.8405

From 292e5249f608d9d908e4aa0a0488bd88e4e96d7e Mon Sep 17 00:00:00 2001
From: Bruce Rogers <brogers@suse.com>
Date: Fri, 9 Mar 2018 05:27:44 -0700
Subject: [PATCH] x86: cpu: increase model_id array size from 48 to 49

This is perhaps the easiest way to handle the longer model names
introduced with the -IBRS models. This is in lew of backporting
commit 807e9869b8c4119b81df902625af818519e01759 and other commits
which that would require.
[BR: BSC#1068032 CVE-2017-5715]
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
 target-i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 486828064d..13f7d6cefc 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -535,7 +535,7 @@ struct X86CPUDefinition {
     int model;
     int stepping;
     FeatureWordArray features;
-    char model_id[48];
+    char model_id[49];
     bool cache_info_passthrough;
 };
 
openSUSE Build Service is sponsored by