summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPhil Weaver <pweaver@google.com>2017-04-05 11:27:07 -0700
committerPhil Weaver <pweaver@google.com>2017-04-05 11:27:07 -0700
commit5b43fca04d6a29fd8d6720e90a9e8f222710f776 (patch)
tree4a975de8015d9f70b2a918ac4016fcfe4be31b67 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc01dd791c331815cfa496548cf535147dedfaa8a (diff)
Fix crash when using list of enabled a11y services
AccessibilityManagerService#getEnabledAccessibilityServiceList had an optimization to always return the same, statically allocated object. This is almost safe if it's being called from another process, as Binder will copy it. When called from the same process, however, it's a lot less safe and seems to have caused a crash. I think the optimization was already problematic in Binder calls as well, though. The method grabs a lock, but I think it's still possible for another thread to call the method while Binder is making the copy. I'm removing the optimization and just allocating a new List to prevent such crashes. Bug: 36364829 Test: No repro case, so I just ran a11y CTS and unit tests. Change-Id: Ib64703a7bbed82c6ca000d8703d23819188b4b9b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions