diff options
author | Siarhei Vishniakou <svv@google.com> | 2021-06-04 19:35:10 +0000 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2021-06-08 20:08:35 +0000 |
commit | 256f3c150724e4b3ee3575d1b3beeb65425e7834 (patch) | |
tree | 6a020e8372573056aded2d44335f6f4dd4eca1a0 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 5ba9720dbf196d7cdaa01f4fe518a16ce38ef046 (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