acrn-hypervisor/devicemodel/hw
Gao Junhao 995efc1b6f dm: refine the check of return value of snprintf
int snprintf(char *str, size_t size, const char *format, ...)
The functions snprintf() write at most size bytes (including the
terminating null byte('\0')) to str.
only when returned value of snprintf is non-negative and less than size,
the string has been completely written.

Tracked-On: #4087
Signed-off-by: Gao Junhao <junhao.gao@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
2019-11-18 10:40:02 +08:00
..
pci dm: refine the check of return value of snprintf 2019-11-18 10:40:02 +08:00
platform dm: fix mutex lock issue in tpm_rbc.c 2019-11-18 10:40:02 +08:00
block_if.c dm: fix some possible memory leak 2019-07-19 16:37:52 +08:00
uart_core.c dm: uart: use mevent_add only when it is a tty 2019-04-23 15:11:08 +08:00
usb_core.c DM USB: add usb_dev_path_cmp function for convenience 2018-12-14 19:40:44 +08:00