summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Tiger Huang <tigerhuang@google.com> 2022-06-06 20:32:46 +0800
committer Tiger Huang <tigerhuang@google.com> 2022-06-06 13:02:59 +0000
commit32dd1b916a2658ce4ef96a2d2537cdeeded10979 (patch)
tree130dca12aeb3c91193634b0f3e4664ecce31af19 /libs/androidfw/Util.cpp
parentf88813c632af57d2b6aab66939588bbf4c989928 (diff)
Don't set extreme values of Integer to safe bounds
This is to prevent getting unexpected results while calculating the width or height of the rectangle, due to the overflow. This CL defines the borders of the window layout with large enough integers, which are also the borders of the safe bounds. Fix: 227276622 Test: atest ConfigurationScreenLayoutTest#testScreenLayout Change-Id: Iee14e6de48f57be4999f64dbdce01815de88a9df
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions