Fix segfault in expression parser

This commit is contained in:
Nikolay Degterinsky 2022-10-23 19:49:00 +02:00 committed by GitHub
parent c0d1be9cab
commit dd98608b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1582,6 +1582,9 @@ public:
{
if (parsed_interval_kind)
{
if (elements.size() < 2)
return false;
elements[0] = makeASTFunction(interval_kind.toNameOfFunctionToIntervalDataType(), elements[0]);
node = makeASTFunction(function_name, elements[1], elements[0]);
}