aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v10/kernel
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-02-12 04:06:12 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-06-16 07:47:34 -0400
commitde666cf0a6b5eb67be0bd518c959a9cf3336dd15 (patch)
treeee9c80ff74fa8bfb08e786bad7d166e61da318a1 /arch/cris/arch-v10/kernel
parente42e3980ad7aa92f1acef22f3451e379f701ca26 (diff)
cris/kgdb: Fix buffer overflow in getpacket()
arch/cris/arch-v10/kernel/kgdb.c: In function 'handle_exception': arch/cris/arch-v10/kernel/kgdb.c:534:17: warning: array subscript is above array bounds [-Warray-bounds] Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/cris/arch-v10/kernel')
-rw-r--r--arch/cris/arch-v10/kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c
index d0b6257afc2c..0e799073498d 100644
--- a/arch/cris/arch-v10/kernel/kgdb.c
+++ b/arch/cris/arch-v10/kernel/kgdb.c
@@ -523,7 +523,7 @@ getpacket (char *buffer)
523 xmitcsum = -1; 523 xmitcsum = -1;
524 count = 0; 524 count = 0;
525 /* Read until a # or the end of the buffer is reached */ 525 /* Read until a # or the end of the buffer is reached */
526 while (count < BUFMAX) { 526 while (count < BUFMAX - 1) {
527 ch = getDebugChar (); 527 ch = getDebugChar ();
528 if (ch == '#') 528 if (ch == '#')
529 break; 529 break;