mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-9114 buffer overflow in _getKeyword() in uloc.cpp
X-SVN-Rev: 31396
This commit is contained in:
parent
1be259b287
commit
5dd029e6e5
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 1997-2011, International Business Machines
|
||||
* Copyright (C) 1997-2012, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
*
|
||||
|
@ -706,7 +706,7 @@ _getKeywords(const char *localeID,
|
|||
pos++;
|
||||
} else {
|
||||
i = (int32_t)uprv_strlen(equalSign);
|
||||
while(equalSign[i-1] == ' ') {
|
||||
while(i && equalSign[i-1] == ' ') {
|
||||
i--;
|
||||
}
|
||||
keywordList[numKeywords].valueLen = i;
|
||||
|
|
Loading…
Add table
Reference in a new issue