summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2022-08-17 09:37:18 -0700
committer Songchun Fan <schfan@google.com> 2022-10-19 08:43:07 -0700
commitd85a42821075ad80b931d904bdc9c1d4c3129456 (patch)
treeb1ec5140cad5267aad75de38014482334b021f56 /libs/androidfw/StringPool.cpp
parent600ecb01d01d3fee3dc88d29bfb02e44e26ebde3 (diff)
[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/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions