acrn-hypervisor/devicemodel/hw/pci/virtio
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
..
vhost.c dm: add support of high MMIO mapping 2019-02-28 18:33:11 +08:00
virtio_audio.c dm: use strncpy to replace strcpy 2019-07-19 16:36:59 +08:00
virtio_block.c dm: refine the check of return value of snprintf 2019-11-18 10:40:02 +08:00
virtio_console.c dm: use strncpy to replace strcpy 2019-07-19 16:36:59 +08:00
virtio_coreu.c dm: protect pthread_cond_wait() against spurious wakeups 2019-04-04 00:27:10 +08:00
virtio_gpio.c dm: use strnlen to replace strlen 2019-07-19 16:37:16 +08:00
virtio_hdcp.c dm: protect pthread_cond_wait() against spurious wakeups 2019-04-04 00:27:10 +08:00
virtio_hyper_dmabuf.c dm: use strncpy to replace strcpy 2019-07-19 16:36:59 +08:00
virtio_input.c dm: virtio-input: adapt Windows virtio-input driver 2019-04-16 15:03:04 +08:00
virtio_ipu.c dm: virtio: refine header file 2018-12-21 15:27:01 +08:00
virtio_kernel.c doc: update virtio related functions doc comments 2018-11-04 20:32:50 -08:00
virtio_mei.c dm: reduce potential crash caused by LIST_FOREACH 2019-11-18 10:40:02 +08:00
virtio_net.c dm: use strncpy to replace strcpy 2019-07-19 16:36:59 +08:00
virtio_rnd.c dm: use strncpy to replace strcpy 2019-07-19 16:36:59 +08:00
virtio_rpmb.c DM: Attestation Keybox support in SOS DM 2019-02-25 16:40:25 +08:00
virtio.c dm: virtio: make sure VQ_ALLOC is set after initialization 2019-04-04 00:27:10 +08:00