Skip to content
Snippets Groups Projects
Commit 6cda8628 authored by Gaoxiang Chen's avatar Gaoxiang Chen Committed by Stuart Scott
Browse files

msm: camera: don't cut to 8bits for validating enum variable


In msm_ispif_is_intf_valid(),
we convert a enum variable msm_ispif_vfe_intf,
to uint8_t type for validating.

This could cause potential issue,
if the value is crafted in such a way that lower 8bits pass the validation.

Don't use uint8_t as input parm to avoid such vulnerability.

Bug: 34624155
CRs-Fixed: 2008469
Change-Id: I4ee400ac0edd830decfbe5712966d968976a268a
Signed-off-by: default avatarGaoxiang Chen <gaochen@codeaurora.org>
Signed-off-by: default avatarSiqi Lin <siqilin@google.com>
parent 81ab42e7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment