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

Commit 2ed6042b authored by Jilai Wang's avatar Jilai Wang Committed by Gerrit - the friendly Code Review server
Browse files

msm: npu: Avoid buffer overflow when handling get_property packet



If packet size is set to invalid value by firmware, when driver
tries to copy property content to memory, it could cause buffer
overflow. To avoid this, packet size needs to be checked to make
sure it's valid.

Change-Id: I0630484fe5678335ed3246dc39e034b6a83d8d40
Signed-off-by: default avatarJilai Wang <quic_jilaiw@quicinc.com>
parent d8e8f6dc
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