commit | d8dc5b3f8af19d4f628843a89e158167b02f7c9d | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Thu Sep 28 17:10:47 2023 -0400 |
committer | Dominik Laskowski <domlaskowski@google.com> | Wed Nov 08 17:07:31 2023 -0500 |
tree | 6ec9a6f593f168cddb18f956df34d3d495ef927b | |
parent | fa76ad2f83b019184fe2f57b2ef6be1d44a80adc [diff] |
screencap: Fix parsing of display IDs The underlying type of DisplayId is uint64_t, but screencap parsed the IDs as signed 64-bit, invoking undefined behavior for out-of-range IDs. In practice, out-of-range IDs were clamped, so SF failed to find them. Fixes: 302580952 Test: screencap works for virtual display on Felix Change-Id: I09a863d0c68dbb857b6f756b51159e5e3d853f5d