kgdbts: Read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 11 Dec 2009 14:43:15 +0000 (08:43 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:15 +0000 (08:43 -0600)
commitb4f1b67be99d6eda8f2f252460905858ace871ef
tree192b55a4f009716d7a4e82ac061c9b8e89ffb377
parent84667d4849b0e0a939a76f9f62d45fa3b4d59692
kgdbts: Read buffer overflow

Prevent write to put_buf[BUFMAX] in kgdb test suite.

If put_buf_cnt was BUFMAX - 1 at the earlier test,
`\0' is written to put_buf[BUFMAX].

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
drivers/misc/kgdbts.c