Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de666cf0 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent e42e3980
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;