Loading core/java/android/content/res/Element.java +4 −4 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class Element { private static final int MAX_ATTR_LEN_MIMETYPE = 512; public static final int MAX_ATTR_LEN_NAME = 1024; public static final int MAX_ATTR_LEN_PATH = 4000; public static final int MAX_ATTR_LEN_DATA_VALUE = 4000; public static final int MAX_ATTR_LEN_VALUE = 32_768; private static final String BAD_COMPONENT_NAME_CHARS = ";,[](){}:?%^*|/\\"; Loading Loading @@ -386,7 +386,7 @@ public class Element { case TAG_ATTR_PATH_SUFFIX: return MAX_ATTR_LEN_PATH; case TAG_ATTR_VALUE: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; case TAG_ATTR_REQUIRED_SYSTEM_PROPERTY_VALUE: return PROP_VALUE_MAX; default: Loading Loading @@ -566,7 +566,7 @@ public class Element { case R.styleable.AndroidManifestMetaData_name: return MAX_ATTR_LEN_NAME; case R.styleable.AndroidManifestMetaData_value: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; default: return DEFAULT_MAX_STRING_ATTR_LENGTH; } Loading Loading @@ -636,7 +636,7 @@ public class Element { case R.styleable.AndroidManifestProperty_name: return MAX_ATTR_LEN_NAME; case R.styleable.AndroidManifestProperty_value: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; default: return DEFAULT_MAX_STRING_ATTR_LENGTH; } Loading services/tests/servicestests/src/com/android/server/pm/parsing/AndroidPackageParsingValidationTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -427,7 +427,7 @@ class AndroidPackageParsingValidationTest { fun parseMetaDataTag() { val tag = "meta-data" validateTagAttr(tag, "name", R.styleable.AndroidManifestMetaData_name, 1024) validateTagAttr(tag, "value", R.styleable.AndroidManifestMetaData_value, 4000) validateTagAttr(tag, "value", R.styleable.AndroidManifestMetaData_value, 32_768) } @Test Loading Loading
core/java/android/content/res/Element.java +4 −4 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class Element { private static final int MAX_ATTR_LEN_MIMETYPE = 512; public static final int MAX_ATTR_LEN_NAME = 1024; public static final int MAX_ATTR_LEN_PATH = 4000; public static final int MAX_ATTR_LEN_DATA_VALUE = 4000; public static final int MAX_ATTR_LEN_VALUE = 32_768; private static final String BAD_COMPONENT_NAME_CHARS = ";,[](){}:?%^*|/\\"; Loading Loading @@ -386,7 +386,7 @@ public class Element { case TAG_ATTR_PATH_SUFFIX: return MAX_ATTR_LEN_PATH; case TAG_ATTR_VALUE: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; case TAG_ATTR_REQUIRED_SYSTEM_PROPERTY_VALUE: return PROP_VALUE_MAX; default: Loading Loading @@ -566,7 +566,7 @@ public class Element { case R.styleable.AndroidManifestMetaData_name: return MAX_ATTR_LEN_NAME; case R.styleable.AndroidManifestMetaData_value: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; default: return DEFAULT_MAX_STRING_ATTR_LENGTH; } Loading Loading @@ -636,7 +636,7 @@ public class Element { case R.styleable.AndroidManifestProperty_name: return MAX_ATTR_LEN_NAME; case R.styleable.AndroidManifestProperty_value: return MAX_ATTR_LEN_DATA_VALUE; return MAX_ATTR_LEN_VALUE; default: return DEFAULT_MAX_STRING_ATTR_LENGTH; } Loading
services/tests/servicestests/src/com/android/server/pm/parsing/AndroidPackageParsingValidationTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -427,7 +427,7 @@ class AndroidPackageParsingValidationTest { fun parseMetaDataTag() { val tag = "meta-data" validateTagAttr(tag, "name", R.styleable.AndroidManifestMetaData_name, 1024) validateTagAttr(tag, "value", R.styleable.AndroidManifestMetaData_value, 4000) validateTagAttr(tag, "value", R.styleable.AndroidManifestMetaData_value, 32_768) } @Test Loading