android_kernel_motorola_sm6225/kernel/debug/kdb
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
..
.gitignore kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00
kdb_bp.c kdb: Add message about CONFIG_DEBUG_RODATA on failure to install breakpoint 2012-03-22 15:07:16 -05:00
kdb_bt.c kdb: Fix dmesg/bta scroll to quit with 'q' 2012-10-12 06:37:35 -05:00
kdb_cmds kdb: cleanup unused variables missed in the original kdb merge 2011-08-01 13:23:58 -05:00
kdb_debugger.c kdb: Setup basic kdb state before invoking commands via kgdb 2013-03-02 08:52:17 -06:00
kdb_io.c kdb,vt_console: Fix missed data due to pager overruns 2012-10-12 06:37:35 -05:00
kdb_keyboard.c KDB: Fix usability issues relating to the 'enter' key. 2012-03-22 15:07:15 -05:00
kdb_main.c kdb: Fix overlap in buffers with strcpy 2013-03-02 08:52:18 -06:00
kdb_private.h printk: Remove kdb_syslog_data 2012-07-21 10:34:00 -07:00
kdb_support.c kdb: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:26 +08:00
Makefile kgdboc,keyboard: Keyboard driver for kdb with kgdb 2010-05-20 21:04:24 -05:00