summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2024-09-20 17:06:32 +0200
committer Matías Hernández <matiashe@google.com> 2024-09-20 19:33:31 +0200
commit1cca7e883ff711f65e697f9192cbe397b8b2dac2 (patch)
treebed364bc2a9bbf283f266330bbd31ee2e98a8223 /libs/androidfw/StringPool.cpp
parent5b2f1b8bd939ba5147a4057f4bd7305aa8e4c0ba (diff)
Always make copies of objects from mDefaultConfig
ZenRule and ZenPolicy are not immutable, so taking objects from mDefaultConfig and putting them in mConfig runs the risk of inadvertently modifying mDefaultConfig. Note that, for API calls from apps, it was most likely safe because copies are creating when unparceling (but it's still risky since ZenModeHelper updates ZenRule objects). Fixes: 368580925 Test: atest ZenModeHelperTest Flag: EXEMPT trivial bugfix Change-Id: If694b615ff911a3f393a5b8d6ae74b224cf5bc2a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions