summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2023-09-28 17:10:47 -0400
committer Dominik Laskowski <domlaskowski@google.com> 2023-11-08 17:07:31 -0500
commitd8dc5b3f8af19d4f628843a89e158167b02f7c9d (patch)
tree6ec9a6f593f168cddb18f956df34d3d495ef927b /libs/androidfw/FileStream.cpp
parentfa76ad2f83b019184fe2f57b2ef6be1d44a80adc (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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions