Fix buffer overflow in uresopen.c
Bug: 6061535 - A security bug reported against Chrome.
Change-Id: If10434bf1c760da3e1713ef4b97b9a41ef979716
diff --git a/common/uresbund.c b/common/uresbund.c
index e3eefb1..cd671a4 100644
--- a/common/uresbund.c
+++ b/common/uresbund.c
@@ -319,7 +319,10 @@
UResourceDataEntry *r = NULL;
UResourceDataEntry find;
/*int32_t hashValue;*/
- char name[96];
+ /* BEGIN android-changed
+ Security bug : http://b/issue?id=6061535 */
+ char name[100];
+ /* END android-changed */
char aliasName[100] = { 0 };
int32_t aliasLen = 0;
/*UBool isAlias = FALSE;*/
@@ -528,8 +531,11 @@
UBool hasChopped = TRUE;
UBool usingUSRData = U_USE_USRDATA && ( path == NULL || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
- char name[96];
- char usrDataPath[96];
+ /* BEGIN android-changed
+ Security bug : http://b/issue?id=6061535 */
+ char name[100];
+ char usrDataPath[100];
+ /* END android-changed */
initCache(status);