File 0088-x86-cpu-increase-model_id-array-siz.patch of Package qemu.9835
From d74a049bf7bad93ae985b64d6f296dcfbd3e0cd7 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 55f72b679f..8393b6cdc7 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -753,7 +753,7 @@ struct X86CPUDefinition {
int model;
int stepping;
FeatureWordArray features;
- char model_id[48];
+ char model_id[49];
};
static X86CPUDefinition builtin_x86_defs[] = {