Commit 6e3c7997 authored by Vedang Nagar's avatar Vedang Nagar Committed by Sambandam Chitra
Browse files

FROMLIST: media: venus: Add a check for packet size



commit <5fc03605222d141e5e2425a2a81a35ec87496b90>
(<"media: venus: Add a check for packet size">)

Add a check to ensure that the packet size does not exceed the number of
available words after reading the packet header from shared memory. This
ensures that the size provided by the firmware is safe to process and
prevent potential out-of-bounds memory access.

Fixes: d96d3f30 ("[media] media: venus: hfi: add Venus HFI files")
Change-Id: I561f411e0a448f8436dafdadb755deb563ce49c2
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarVedang Nagar <quic_vnagar@quicinc.com>
Co-developed-by: default avatarDikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: default avatarDikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: default avatarVasantha Balla <quic_c_vballa@quicinc.com>
parent d5278d5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment