cifs: Validate content of native symlink
Check that path buffer has correct length (it is non-zero and in UNICODE mode it has even number of bytes) and check that buffer does not contain null character (UTF-16 null codepoint in UNICODE mode or null byte in non-unicode mode) because Linux cannot process symlink with null byte. Signed-off-by:Pali Rohár <pali@kernel.org> Signed-off-by:
Steve French <stfrench@microsoft.com>
Loading
Please sign in to comment