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

Skip to content
Commit b9e3657a authored by Greg Kaiser's avatar Greg Kaiser
Browse files

EffectBundle: Avoid possible out-of-bounds access

'preset' is allowed to be PRESET_CUSTOM, which is -1, when we
use it as an array index in an ALOGVV statement.  We change this
logic to just use 'name' directly.  While this risks a
truncation of the string, it avoids out-of-bounds and is
probably still sufficient for debugging.

Bug: 77720605
Test: TreeHugger
Change-Id: Id03829e4ba73764ca23ed8238632ff02946cdebc
parent d22f3e89
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