summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/pgtable.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-05-27 09:55:13 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-05-28 08:35:28 (GMT)
commitd5b4c2f4938aaebc392669111385c3cf50dd309f (patch)
tree0e1f9dc2ea24500981a61d2adec13e46080a5a93 /arch/s390/include/asm/pgtable.h
parent9acf73b7d06eaa3fbfbfafc9c835f8fe0d751eff (diff)
downloadlinux-d5b4c2f4938aaebc392669111385c3cf50dd309f.tar.xz
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>
Diffstat (limited to 'arch/s390/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions