msm: camera: Fix out of bound read access
Input num_streams cannot be greater than the max allowed
number of streams, otherwise this casue OOB read access.
Add bounds check for num_streams which from user input.
CRs-Fixed: 2330040
Change-Id: I76fb785dc54c597603d748d604844952cea659ea
Signed-off-by:
Haibin Liu <haibinl@codeaurora.org>
Loading
Please register or sign in to comment