Files
acrn-hypervisor/devicemodel/core
Zide Chen f6a7206200 acrn-dm: fix corner cases in acrn_parse_cpu_affinity()
- re-arange the code to make static code analysis tool happy.

- If no valid conversion could be performed, a zero value is returned
  (0L) from strtol(), so add a sanity check "isdigit(cp[0])" to ensure
  that it won't unexpectedly parse CPU 0 if the string starts or ends
  with the valid delimiters ',' or '-', for example:

  -- cpu_affinity 1,
  -- cpu_affinity ,1

Tracked-On: #4616
Signed-off-by: Zide Chen <zide.chen@intel.com>
2020-05-29 11:51:09 +08:00
..
2019-07-03 09:40:15 +08:00
2020-01-08 13:37:57 +08:00
2020-01-08 13:37:57 +08:00
2020-04-16 22:01:54 +08:00
2020-01-08 13:37:57 +08:00