summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2021-06-04 19:35:10 +0000
committerSiarhei Vishniakou <svv@google.com>2021-06-08 20:08:35 +0000
commit256f3c150724e4b3ee3575d1b3beeb65425e7834 (patch)
tree6a020e8372573056aded2d44335f6f4dd4eca1a0 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5ba9720dbf196d7cdaa01f4fe518a16ce38ef046 (diff)
Prevent usage of freed memory by using getLights and getSensors
Instead of separately querying light ids and light infos, just provide a list of light infos. They already contain the light ids. This way, we also avoid leaving uninitialized array elements when the lookup fails. In the InputReader code, a lock is obtained when the light information is being read, but that memory could change right after the call completes. Bug: 190126442 Test: atest inputflinger_tests libinput_tests Change-Id: I16ef37dce96d7077a8634d565b573fc26f1ebb5d
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions