feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
7
engine/thirdparty/icu4c/common/unistr.cpp
vendored
7
engine/thirdparty/icu4c/common/unistr.cpp
vendored
|
|
@ -1945,6 +1945,13 @@ UnicodeString::cloneArrayIfNeeded(int32_t newCapacity,
|
|||
growCapacity = newCapacity;
|
||||
} else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
|
||||
growCapacity = US_STACKBUF_SIZE;
|
||||
} else if(newCapacity > growCapacity) {
|
||||
setToBogus();
|
||||
return false; // bad inputs
|
||||
}
|
||||
if(growCapacity > kMaxCapacity) {
|
||||
setToBogus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// save old values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue