acrn-hypervisor/hypervisor/include/lib
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
..
crypto hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
errno.h HV: Reset physical core of lapic_pt vm when shutdown 2019-04-22 19:58:20 +08:00
hash.h hv: Add 64 bits hash function 2020-05-20 16:04:16 +08:00
list.h hv: ptirq: refine find_ptirq_entry by hashing 2020-05-20 16:04:16 +08:00
rtl.h HV: rewrite strncpy_s to be iso c11 compliant 2020-06-08 13:30:04 +08:00
sprintf.h fix "Casting operation to a pointer" 2018-11-06 13:37:33 +08:00
types.h hv: support xsave in context switch 2019-12-02 09:31:12 +08:00
util.h hv: add ACPI support for pre-launched VMs 2019-08-29 10:12:25 +08:00