Skip to content

Commit

Permalink
Bug 6008414 - ICU uloc.c out of boundary read error.
Browse files Browse the repository at this point in the history
A bug reported against Chrome. Android browser may have the same issue.

Change-Id: I8379c455fb8211479d46e6ba60c53d651ee71724
  • Loading branch information
claire-ho committed Feb 15, 2012
1 parent ab19ce4 commit 816c50f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/uloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,12 @@ _getKeywords(const char *localeID,
pos++;
} else {
i = (int32_t)uprv_strlen(equalSign);
while(equalSign[i-1] == ' ') {
/* BEGIN android-changed
For http://b/issue?id=6008774 : out-of-boundary memory access */
while(i && equalSign[i-1] == ' ') {
i--;
}
/* END android-changed */
keywordList[numKeywords].valueLen = i;
}
/* If this is a duplicate keyword, then ignore it */
Expand Down

0 comments on commit 816c50f

Please sign in to comment.