Commit 9085c3c4 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Jiri Slaby
Browse files

mei: bus: fix possible boundaries violation



commit cfda2794 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: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 30063396
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment