commit | 8b326c61de08f5ca4bc454a168f19e7e43c4cc2a | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Fri Sep 16 14:12:11 2016 +0200 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Fri Sep 16 14:12:11 2016 +0200 |
tree | eb3d11705f81fa3627796dca0fdee18296790704 | |
parent | 9395452b4aab7bc2475ef8935b4a4fb99d778d70 [diff] |
ovl: copy_up_xattr(): use strnlen 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> Cc: <stable@vger.kernel.org>