]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cyapa - off by one in cyapa_update_fw_store()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Jan 2015 16:20:16 +0000 (08:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 22 Jan 2015 16:23:15 +0000 (08:23 -0800)
commite4e8b7d7a77d706b6b44f98553a6b470b8609533
treee9de3badeca3973ed3ec27f5ef578ca7c519de2b
parented1d5be15b1cba39431b6661ecca5051db8d9f1c
Input: cyapa - off by one in cyapa_update_fw_store()

If "(count == NAME_MAX)" then we could end up putting the NUL terminator
one space beyond the end of the fw_name[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa.c