summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-09-16 15:12:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-28 10:01:30 +0300
commit714ac6de4454bd134f5bc0777e2bc7c5c50629db (patch)
tree89808a322c924a057fe786596fdb569e1165293a /drivers/media
parent0a5600d83fa5a251c91459779d5311a005e4c5b3 (diff)
downloadlinux-714ac6de4454bd134f5bc0777e2bc7c5c50629db.tar.xz
ovl: copy_up_xattr(): use strnlen
commit 8b326c61de08f5ca4bc454a168f19e7e43c4cc2a upstream. Be defensive about what underlying fs provides us in the returned xattr list buffer. strlen() may overrun the buffer, so use strnlen() and WARN if the contents are not properly null terminated. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions