git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9acf73b
)
arch: s390: appldata: using strncpy() and strnlen() instead of sprintf()
author
Chen Gang
<gang.chen@asianux.com>
Mon, 27 May 2013 09:55:13 +0000
(17:55 +0800)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 28 May 2013 08:35:28 +0000
(10:35 +0200)
'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>
No differences found