From 68a2aa50862cc7cb6e8125c7a3d17ed1dc36f4e4 Mon Sep 17 00:00:00 2001 From: Manisha Chinthapally Date: Tue, 22 Jan 2019 12:09:15 -0800 Subject: [PATCH] security: bounds checking to avoid buffer overflow error The array index of 'vm_list' may be out of bound. Updated size of profiling_vm_info_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 {