mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
d5b4c2f493
'buf[2]' is 2 bytes length, and sprintf() will append '\0' at the end of string "?\n", so original implementation is memory overflow. Need use strncpy() and strnlen() instead of sprintf(). Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> |
||
---|---|---|
.. | ||
appldata_base.c | ||
appldata_mem.c | ||
appldata_net_sum.c | ||
appldata_os.c | ||
appldata.h | ||
Makefile |