acrn-hypervisor/hypervisor/include
Victor Sun bad12039c6 HV: rewrite strncpy_s to be iso c11 compliant
Per C11 standard (ISO/IEC 9899:2011): K.3.7.1.4

1. Copying shall not take place between objects that overlap;
2. If there is a runtime-constraint violation, the strncpy_s function sets
   s1[0] to '\0\;
3. The strncpy_s function returns zero if there was no runtime-constraint
   violation. Otherwise, a nonzero value is returned.
4. The function is implemented with memcpy_s() because the runtime-constraint
   detection is almost same.

Tracked-On: #4885

Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2020-06-08 13:30:04 +08:00
..
arch/x86 hv: vpci: hv: vpci: refine pci device assignment logic 2020-06-03 22:00:43 +08:00
common hv: ptirq: refine find_ptirq_entry by hashing 2020-05-20 16:04:16 +08:00
debug HV: correct ept page array usage 2020-03-12 14:56:34 +08:00
dm hv: vpci: refine vpci deinit 2020-05-13 14:31:01 +08:00
hw hv: pci: remove some unnecessary functions 2020-06-05 16:53:33 +08:00
lib HV: rewrite strncpy_s to be iso c11 compliant 2020-06-08 13:30:04 +08:00
public hv: dynamically configure CPU affinity through hypercall 2020-04-23 09:38:54 +08:00