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

Skip to content
Commit b0d918e4 authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

soc: qcom: pil: Avoid usage of variable length array



The function, pil_load_segs(), declares a bitmap (err_map)
as a Variable Length Array (VLA). VLAs are considered unfit
when it comes to security, performance, code quality, and so
on. Hence, allocate the memory dynamically for the same bitmap.

Change-Id: I4d226eb6ab9c27910db41bf87d881a30f32a6c74
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent 4719c01d
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