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 <manisha.chinthapally@intel.com>
This commit is contained in:
Manisha Chinthapally 2019-01-22 12:09:15 -08:00 committed by wenlingz
parent 3bbe6b739c
commit 68a2aa5086

View File

@ -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 {