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
Loading
Please register or sign in to comment