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:
Deepak Kumar Singh <quic_deesin@quicinc.com>
Loading
Please register or sign in to comment