[PATCH] Overrun in isdn_tty.c
authorEric Sesterhenn <snakebyte@gmx.de>
Sat, 20 May 2006 22:00:12 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 21 May 2006 19:59:18 +0000 (12:59 -0700)
commita6a61c5494145c904bead0cceadd94080bd3a784
tree7b0af71fd46a86da830c1ae3c0391fa9e55dee53
parent92d1dbd27417c54c23aac6a84c285e256f6118b6
[PATCH] Overrun in isdn_tty.c

This fixes coverity bug id #1237.  After the while loop, it is possible for
i == ISDN_LMSNLEN.  If this happens the terminating '\0' is written after
the end of the array.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/i4l/isdn_tty.c