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

Skip to content
Commit b1a5020b authored by Deepak Kumar Singh's avatar Deepak Kumar Singh Committed by Sarannya S
Browse files

soc: qcom: qmi_encdec: out of bound check for input buffer



Data shared by remote processors can not be trusted.
QMI message could be malformed which can result in decoded
bytes greater than length of input buffer supplied causing
buffer overflow.

Check decoded bytes against buffer length to avoid buffer
overflow.

Change-Id: I1d2d3aadd297718b8ecc023a20475b60f4bce022
Signed-off-by: default avatarDeepak Kumar Singh <quic_deesin@quicinc.com>
parent 2ecaccc5
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