8
0
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:
Adriano dos Santos Fernandes 2021-04-16 11:53:18 -03:00
parent ac2532fc9c
commit 333412807b

View File

@ -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;