From 5e99565b74d74b03156c63cb7e2d1fef508c8ad3 Mon Sep 17 00:00:00 2001 From: Manisha Chinthapally Date: Thu, 24 Jan 2019 10:24:35 -0800 Subject: [PATCH] security: Increase buffer size to avoid buffer overflow error The array indexx of "vm_list" may be out of bound. Updated the size of "vm_list" Bug: ACRN-2544 Tracked-On: #2385 Signed-off-by: Manisha Chinthapally --- hypervisor/include/debug/profiling_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/include/debug/profiling_internal.h b/hypervisor/include/debug/profiling_internal.h index 8857031e3..28d877f58 100644 --- a/hypervisor/include/debug/profiling_internal.h +++ b/hypervisor/include/debug/profiling_internal.h @@ -114,7 +114,7 @@ struct profiling_vm_info { struct profiling_vm_info_list { uint16_t num_vms; - struct profiling_vm_info vm_list[CONFIG_MAX_VM_NUM]; + struct profiling_vm_info vm_list[CONFIG_MAX_VM_NUM+1]; }; struct sw_msr_op_info {