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

Skip to content
Commit dfe35953 authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal
Browse files

msm: vidc: update index from unsigned to signed number



[1] if target ramsize value is higher than mentioned in
memory_limit_tbl_mbytes table, then index value will
reach zero in msm_comm_get_memory_limit.
[2] currently index is u32, so for nex iteration index value
will become huge positive value instead of -1.
[3] It will lead to OOB access at memory_limits_tbl[i].ddr_size.
and it will go in infinite loop.

Change-Id: I0bfcb98660af65a1e1852f9a67c2f26dcbdac232
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent 4f9d7ba5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment