summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-ctrls-api.c
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2025-12-14 15:06:34 +0900
committerSteve French <stfrench@microsoft.com>2025-12-14 18:35:56 -0600
commit95d7a890e4b03e198836d49d699408fd1867cb55 (patch)
treeb932eda763e22d13b9f497438bee32ea5059ee09 /drivers/media/v4l2-core/v4l2-ctrls-api.c
parentcafb57f7bdd57abba87725eb4e82bbdca4959644 (diff)
ksmbd: fix buffer validation by including null terminator size in EA length
The smb2_set_ea function, which handles Extended Attributes (EA), was performing buffer validation checks that incorrectly omitted the size of the null terminating character (+1 byte) for EA Name. This patch fixes the issue by explicitly adding '+ 1' to EaNameLength where the null terminator is expected to be present in the buffer, ensuring the validation accurately reflects the total required buffer size. Cc: stable@vger.kernel.org Reported-by: Roger <roger.andersen@protonmail.com> Reported-by: Stanislas Polu <spolu@dust.tt> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-api.c')
0 files changed, 0 insertions, 0 deletions