commit | b9e3657ad551ea0d7c699a95747a3456b4a160e0 | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Wed Apr 10 08:47:46 2019 -0700 |
committer | Greg Kaiser <gkaiser@google.com> | Wed Apr 10 09:00:34 2019 -0700 |
tree | 5e74c9c88ccabdc1f2f9bb19263fac836f2cc88a | |
parent | d22f3e893363022389ab9d6ca0c5f37112ac8e17 [diff] |
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