linux/kernel/debug
Jason Wessel 4eb7a66d94 kdb: Fix overlap in buffers with strcpy
Maxime reported that strcpy(s->usage, s->usage+1) has no definitive
guarantee that it will work on all archs the same way when you have
overlapping memory.  The fix is simple for the kdb code because we
still have the original string memory in the function scope, so we
just have to use that as the argument instead.

Reported-by: Maxime Villard <rustyBSD@gmx.fr>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2013-03-02 08:52:18 -06:00
..
kdb kdb: Fix overlap in buffers with strcpy 2013-03-02 08:52:18 -06:00
debug_core.c KGDB/KDB fixes and cleanups 2012-10-13 11:16:58 +09:00
debug_core.h kdb: Setup basic kdb state before invoking commands via kgdb 2013-03-02 08:52:17 -06:00
gdbstub.c kdb: Setup basic kdb state before invoking commands via kgdb 2013-03-02 08:52:17 -06:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00