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
This commit is contained in:
Robert Greenwalt
2017-05-08 16:44:08 -07:00
parent ff6c0e697c
commit f725f98f17

View File

@@ -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.
*/