]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mei: bus: fix possible boundaries violation
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 25 Aug 2014 13:46:53 +0000 (16:46 +0300)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:11:16 +0000 (15:11 +0100)
commit9085c3c4214282cb8fbf3024110bf5cd88999b7f
tree2a8e9f79bf4d7a42fdd96dbfa36a54bf1fc191a3
parent30063396d818b279a5571476a80db4b656d61610
mei: bus: fix possible boundaries violation

commit cfda2794b5afe7ce64ee9605c64bef0e56a48125 upstream.

function 'strncpy' will fill whole buffer 'id.name' of fixed size (32)
with string value and will not leave place for NULL-terminator.
Possible buffer boundaries violation in following string operations.
Replace strncpy with strlcpy.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/misc/mei/bus.c