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:
760033c
)
arch/frv/kernel/setup.c: use strncmp() instead of memcmp()
author
Chen Gang
<gang.chen@asianux.com>
Wed, 3 Jul 2013 22:04:53 +0000
(15:04 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:41 +0000
(16:07 -0700)
'cmdline' is a NUL terminated string, when its length < 4, memcmp()
will cause memory access out of boundary.
So use strncmp() instead of memcmp().
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
No differences found