2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 10:13:57 +08:00
linux-next/arch/s390/appldata
Chen Gang d5b4c2f493 arch: s390: appldata: using strncpy() and strnlen() instead of sprintf()
'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>
2013-05-28 10:35:28 +02:00
..
appldata_base.c arch: s390: appldata: using strncpy() and strnlen() instead of sprintf() 2013-05-28 10:35:28 +02:00
appldata_mem.c s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
appldata_net_sum.c s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
appldata_os.c s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
appldata.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00