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