forked from luck/tmp_suning_uos_patched
e325808c00
Currently the call to atoi is being passed a single char string
that is not null terminated, so there is a potential read overrun
along the stack when parsing for an integer value. Fix this by
instead using a 2 char string that is initialized to all zeros
to ensure that a 1 char read into the string is always terminated
with a \0.
Detected by cppcheck:
"Invalid atoi() argument nr 1. A nul-terminated string is required."
Fixes:
|
||
---|---|---|
.. | ||
list.h | ||
Makefile.am | ||
names.c | ||
names.h | ||
sysfs_utils.c | ||
sysfs_utils.h | ||
usbip_common.c | ||
usbip_common.h | ||
usbip_device_driver.c | ||
usbip_device_driver.h | ||
usbip_host_common.c | ||
usbip_host_common.h | ||
usbip_host_driver.c | ||
usbip_host_driver.h | ||
vhci_driver.c | ||
vhci_driver.h |