commit | 8eeb92950f4a7012d4cf282106a1418fd211f475 | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Wed Aug 17 09:37:18 2022 -0700 |
committer | Songchun Fan <schfan@google.com> | Wed Aug 17 20:44:08 2022 +0000 |
tree | 1adafb5f084b4cd47cea19a14743279ecfbfb47f | |
parent | f982d7e77afc82878fafba1f712a018de0d0a1ad [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 Change-Id: I20551a2dba9aa79efa0c064824f349f551c2c2e4