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:
parent
01ab5f9854
commit
5ca2d8640b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user