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
5
engine/thirdparty/icu4c/common/ushape.cpp
vendored
5
engine/thirdparty/icu4c/common/ushape.cpp
vendored
|
|
@ -28,6 +28,7 @@
|
|||
#include "ubidi_props.h"
|
||||
#include "uassert.h"
|
||||
|
||||
#include <limits>
|
||||
/*
|
||||
* This implementation is designed for 16-bit Unicode strings.
|
||||
* The main assumption is that the Arabic characters and their
|
||||
|
|
@ -747,6 +748,10 @@ handleGeneratedSpaces(char16_t *dest, int32_t sourceLength,
|
|||
}
|
||||
}
|
||||
|
||||
if (static_cast<size_t>(sourceLength) + 1 > std::numeric_limits<size_t>::max() / U_SIZEOF_UCHAR) {
|
||||
*pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR;
|
||||
return 0;
|
||||
}
|
||||
tempbuffer = static_cast<char16_t*>(uprv_malloc((sourceLength + 1) * U_SIZEOF_UCHAR));
|
||||
/* Test for nullptr */
|
||||
if(tempbuffer == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue