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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user