diff options
| author | Chen Gang <[email protected]> | 2013-07-03 22:04:53 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-03 23:07:41 +0000 |
| commit | 98bd8d05ea5798ff3179ee33f0ca2789722ecc5a (patch) | |
| tree | 370a982aa598bdf50f31ab0f3b3cccba62143ddc /lib/dump_stack.c | |
| parent | arch/frv/kernel/traps.c: using vsnprintf() instead of vsprintf() (diff) | |
| download | kernel-98bd8d05ea5798ff3179ee33f0ca2789722ecc5a.tar.gz kernel-98bd8d05ea5798ff3179ee33f0ca2789722ecc5a.zip | |
arch/frv/kernel/setup.c: use strncmp() instead of memcmp()
'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 <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
