summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2022-08-17 09:37:18 -0700
committer Song Chun Fan <schfan@google.com> 2022-10-18 19:29:35 +0000
commita1e8e64e07622005807b560c13e746167a4db6b2 (patch)
tree6144bedb49e3c96de996a29cbb0e129133c8ccbb /libs/androidfw/Util.cpp
parent869d90d0b2963a372ad4d1d756a1d18b61e790a8 (diff)
[RESTRICT AUTOMERGE] [SettingsProvider] mem limit should be checked before settings are updated
Previously, a setting is updated before the memory usage limit check, which can be exploited by malicious apps and cause OoM DoS. This CL changes the logic to checkMemLimit -> update -> updateMemUsage. BUG: 239415861 Test: atest com.android.providers.settings.SettingsStateTest (cherry picked from commit 8eeb92950f4a7012d4cf282106a1418fd211f475) Merged-In: I20551a2dba9aa79efa0c064824f349f551c2c2e4 Change-Id: I20551a2dba9aa79efa0c064824f349f551c2c2e4
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions