Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31e2a2f0 authored by Senthil Kumar Rajagopal's avatar Senthil Kumar Rajagopal Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp: fix for potentitial array out of bound access



There is no bound check on dual_hw_ms_cmd->num_src,
which is coming from userspace
num_src is used as the index for the input_src array
which has a size of 5.
The current code did not check the num_src to make sure
that it never exceeds the input_src array size.

CRs-Fixed: 2006169
Change-Id: If5927e06e70cce4afb0ae9f2cdfec80f76f83771
Signed-off-by: default avatarSenthil Kumar Rajagopal <skrajago@codeaurora.org>
parent 5720340d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment