mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-30 11:13:13 +00:00
The return value of 'strtol()' is not checked properly in _get_vmname_pid() @acrn_vm_ops.c and parse_opt()@acnrd.c, the return type of 'strtol' is 'long int', but it is assigned to a variable with type of 'int' and compared to "LONG_MAX" and "LONG_MIN", which is always false. This patch is to fix above error case. Tracked-On: #3859 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com> Acked-by: Yan, Like <like.yan@intel.com>
17 KiB
17 KiB