8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Fixed another case for CORE-6046.

Incorrect time zone parsing reads garbage in memory.
This commit is contained in:
Adriano dos Santos Fernandes 2019-04-24 21:14:39 -03:00
parent 01ab5f9854
commit 5ca2d8640b

View File

@ -366,10 +366,10 @@ USHORT TimeZoneUtil::parseRegion(const char* str, unsigned strLen)
((*str >= 'a' && *str <= 'z') ||
(*str >= 'A' && *str <= 'Z') ||
*str == '_' ||
*str == '/') ||
*str == '/' ||
(str != start && *str >= '0' && *str <= '9') ||
(str != start && *str == '+') ||
(str != start && *str == '-'))
(str != start && *str == '-')))
{
++str;
}