diff options
author | Ioana Alexandru <aioana@google.com> | 2023-01-10 10:51:21 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-14 18:17:06 +0000 |
commit | eec689f2668bdcb7c820d153de8fc82e72b93409 (patch) | |
tree | 80881e41d9ee34120e6a1376e2ca453ec4e73391 | |
parent | 37e9ac249bc712eb240a7224ebe09d24de5fb190 (diff) | |
download | base-eec689f2668bdcb7c820d153de8fc82e72b93409.tar.gz |
Lower per-app NotificationChannelGroup limit.
A higher limit can be abused to cause PDoS.
For the rationale behind choosing 6000 as the max value, see
http://b/261723753#comment20.
Test: atest PreferencesHelperTest
Bug: 261723753
Change-Id: I3f3a99765c161369e1b026686a0e5f0c83ed839e
(cherry picked from commit 86441bd5c07c65021728748472fa6a28eaf162d0)
Merged-In: I3f3a99765c161369e1b026686a0e5f0c83ed839e
-rw-r--r-- | services/core/java/com/android/server/notification/PreferencesHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/PreferencesHelper.java b/services/core/java/com/android/server/notification/PreferencesHelper.java index d8aa469bcd81..5507158f34da 100644 --- a/services/core/java/com/android/server/notification/PreferencesHelper.java +++ b/services/core/java/com/android/server/notification/PreferencesHelper.java @@ -108,7 +108,7 @@ public class PreferencesHelper implements RankingConfig { @VisibleForTesting static final int NOTIFICATION_CHANNEL_COUNT_LIMIT = 5000; @VisibleForTesting - static final int NOTIFICATION_CHANNEL_GROUP_COUNT_LIMIT = 50000; + static final int NOTIFICATION_CHANNEL_GROUP_COUNT_LIMIT = 6000; private static final int NOTIFICATION_PREFERENCES_PULL_LIMIT = 1000; private static final int NOTIFICATION_CHANNEL_PULL_LIMIT = 2000; |