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

Commit 068a9fe4 authored by Rajesh Bondugula's avatar Rajesh Bondugula
Browse files

msm: camera: Restructure data handling to be more robust



Use dynamic array allocation instead of static array to
prevent stack overflow.
User-supplied number of bytes may result in integer overflow.
To fix this we check that the num_byte isn't above 8K size.

CRs-Fixed: 1060554
Change-Id: I407b5ec8cdc2ac7f3b491644418d3eb1101ce65a
Signed-off-by: default avatarSamyukta Mogily <smogily@codeaurora.org>
Signed-off-by: default avatarRajesh Bondugula <rajeshb@codeaurora.org>
parent 9b82a4c5
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