acrn-hypervisor/devicemodel/hw/pci
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
..
virtio dm: refine the check of return value of snprintf 2019-11-18 10:40:02 +08:00
ahci.c dm: refine the check of return value of snprintf 2019-11-18 10:40:02 +08:00
core.c dm: validate the input in 'pci_emul_mem_handler()' 2019-11-06 16:33:25 +08:00
gsi_sharing.c dm: reduce potential crash caused by LIST_FOREACH 2019-11-18 10:40:02 +08:00
gvt.c dm: fix possible null pointer dereference in pci_gvt_deinit 2019-04-23 13:45:41 +08:00
hostbridge.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
irq.c DM: wrap ASSERT/DEASSERT IRQ line with Set/Clear IRQ line 2018-10-29 09:26:23 +08:00
lpc.c dm: refine the uart_core 2018-12-27 09:58:20 +08:00
npk.c dm: refine the check of return value of snprintf 2019-11-18 10:40:02 +08:00
passthrough.c dm: passthru: support SD hotplug 2019-04-11 10:10:15 +08:00
platform_gsi_info.c DM: update GSI sharing info 2018-08-09 15:42:51 +08:00
uart.c dm: refine the uart_core 2018-12-27 09:58:20 +08:00
wdt_i6300esb.c acrn-dm: enable debug option for acrn-dm 2019-04-16 15:24:25 +08:00
xhci.c dm: fix some potential memory leaks 2019-07-19 16:37:33 +08:00