[S390] sclp_async: potential buffer overflow
authorDan Carpenter <error27@gmail.com>
Fri, 9 Apr 2010 11:42:59 +0000 (13:42 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Fri, 9 Apr 2010 11:43:02 +0000 (13:43 +0200)
commit35ac734f72d846f250c0344913a91f954ea764c3
tree6f86aeb8ecb387afce50eb36e9001a234479a586
parentd7015c120e0ac55d86cabbe7a14997b99f39e282
[S390] sclp_async: potential buffer overflow

"len" hasn't been properly range checked so we shouldn't use it as an
array offset.  This can only be written to by root but it would still be
annoying to accidentally write more than 3 characters and corrupt your
memory.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_async.c