diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2014-08-25 16:46:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-21 09:22:55 -0800 |
commit | ba8beb4ca84e22996b0f553248ea52c760afb930 (patch) | |
tree | 625e7874e0bca527f0b7d839e130d009e71b5cbd /arch/x86 | |
parent | 858879737bb5b7b7dca1d84df9018e7eb46d7294 (diff) | |
download | lwn-ba8beb4ca84e22996b0f553248ea52c760afb930.tar.gz lwn-ba8beb4ca84e22996b0f553248ea52c760afb930.zip |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions