Skip to content
Commit 2ae1a6cc authored by Namjae Jeon's avatar Namjae Jeon
Browse files

cifsd: fix potential read overflow in ksmbd_vfs_stream_read()



If *pos or *pos + count is greater than v_len, It will read beyond
the stream_buf buffer. This patch add the check and cut down count with
size of the buffer.

Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent fd6de099
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment