mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Postfix for CORE-6542: use U8_NEXT_UNSAFE to avoid problems with older ICU versions/Windows.
This commit is contained in:
parent
ac2532fc9c
commit
333412807b
@ -426,7 +426,7 @@ ULONG IntlUtil::utf8SubString(charset* cs, ULONG srcLen, const UCHAR* src, ULONG
|
||||
if (pos >= srcLen)
|
||||
return 0;
|
||||
|
||||
U8_NEXT(src, pos, srcLen, c);
|
||||
U8_NEXT_UNSAFE(src, pos, c);
|
||||
|
||||
if (c < 0)
|
||||
return INTL_BAD_STR_LENGTH;
|
||||
@ -438,7 +438,7 @@ ULONG IntlUtil::utf8SubString(charset* cs, ULONG srcLen, const UCHAR* src, ULONG
|
||||
|
||||
while (currentPos < startPos + length && pos < srcLen)
|
||||
{
|
||||
U8_NEXT(src, pos, srcLen, c);
|
||||
U8_NEXT_UNSAFE(src, pos, c);
|
||||
|
||||
if (c < 0)
|
||||
return INTL_BAD_STR_LENGTH;
|
||||
|
Loading…
Reference in New Issue
Block a user