From f725f98f170e43aacbfa7cb6a3935f277552efc8 Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Mon, 8 May 2017 16:44:08 -0700 Subject: [PATCH] Increase limit of locale pairs This is just to avoid people injecting arbitrarily large numbers here and causing crashes due to memory limitation. Raised to a high enough level to avoid chance of hitting in practice. Test: build Change-Id: I1d2a245f9c391a9d6aec52bddd3dc086206d3e30 --- telephony/java/android/telephony/mbms/ServiceInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telephony/java/android/telephony/mbms/ServiceInfo.java b/telephony/java/android/telephony/mbms/ServiceInfo.java index cd2e46c203126..cb621c8bbfd00 100644 --- a/telephony/java/android/telephony/mbms/ServiceInfo.java +++ b/telephony/java/android/telephony/mbms/ServiceInfo.java @@ -32,7 +32,7 @@ import java.util.Set; */ public class ServiceInfo implements Parcelable { // arbitrary limit on the number of locale -> name pairs we support - final static int MAP_LIMIT = 50; + final static int MAP_LIMIT = 1000; /** * User displayable names listed by language. Unmodifiable. */