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

Unverified Commit c670d300 authored by Kaushal Hooda's avatar Kaushal Hooda Committed by Michael Bestas
Browse files

rpmsg: slatecom: Discard unaligned packet to read



If intent_alloc_size and chunk size are unaligned with the minimum offset,
then ahb_read can lead to bytes overflow as ahb_read is performed
with word_size aligned.

If the received chunk_size is not aligned to word_size, discard packet
to read.

Change-Id: I36fabc8bde22355de1ae32cb026a2a246778d47e
Signed-off-by: default avatarKaushal Hooda <quic_khooda@quicinc.com>
parent 8b685a05
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