projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42e398
)
cris/kgdb: Fix buffer overflow in getpacket()
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Tue, 12 Feb 2013 09:06:12 +0000
(10:06 +0100)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 16 Jun 2013 11:47:34 +0000
(13:47 +0200)
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>
arch/cris/arch-v10/kernel/kgdb.c
patch
|
blob
|
history
diff --git
a/arch/cris/arch-v10/kernel/kgdb.c
b/arch/cris/arch-v10/kernel/kgdb.c
index
d0b6257
..
0e79907
100644
(file)
--- a/
arch/cris/arch-v10/kernel/kgdb.c
+++ b/
arch/cris/arch-v10/kernel/kgdb.c
@@
-523,7
+523,7
@@
getpacket (char *buffer)
xmitcsum = -1;
count = 0;
/* Read until a # or the end of the buffer is reached */
- while (count < BUFMAX) {
+ while (count < BUFMAX
- 1
) {
ch = getDebugChar ();
if (ch == '#')
break;