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

Commit a7610a4a authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

ipa: Fix ioctl buffer allocation due to increased header size



The max header size changed from 64 to 255, which caused increase
in size of structs containing headers (struct ipa_hdr_add). Fixing the stack buffer
allocation size in the ioctl to avoid buffer overflow.

Note for the future: This function allocates number of buffers
on the stack, but uses only one on each call. It would be better
to refactor it, to use only one buffer, in order to minimize
stack allocations.

Change-Id: Id79efe7901ebf85dab4c0ba09cc7bb852cf22a97
Signed-off-by: default avatarIlia Lin <quic_ilial@quicinc.com>
Signed-off-by: default avatarChaitanya Pratapa <quic_cpratapa@quicinc.com>
Signed-off-by: default avatarAshok Vuyyuru <quic_avuyyuru@quicinc.com>
parent 6d9d19a6
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