mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4893 Fix a problem with bounds checking and using a stack buffer.
X-SVN-Rev: 18706
This commit is contained in:
parent
e5b14425b7
commit
58881c2ea7
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ _strFromWCS( UChar *dest,
|
|||
if(retVal == -1){
|
||||
*pErrorCode = U_ILLEGAL_CHAR_FOUND;
|
||||
goto cleanup;
|
||||
}else if(retVal == cStackCap){
|
||||
}else if(retVal >= (cStackCap-1)){
|
||||
/* Should rarely occur */
|
||||
u_growAnyBufferFromStatic(cStack,(void**)&pCSrc,&cStackCap,
|
||||
cStackCap * _BUFFER_CAPACITY_MULTIPLIER, 0, sizeof(char));
|
||||
|
|
Loading…
Add table
Reference in a new issue