fix crash if operation stack is 0 in a malformed formula # Description fix crash if operation stack is 0 in a malformed formula Diffs= b4066558a1 fix crash if operation stack is 0 in a malformed formula (#9435) Co-authored-by: hernan <hernan@rive.app>
diff --git a/.rive_head b/.rive_head index 3bbc7d7..7635b52 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -5c4e83502fbc0b462760991409f403a7910a7eba +b4066558a126ad40b9049fe70b99f2ee6b43b3b7
diff --git a/src/data_bind/converters/data_converter_formula.cpp b/src/data_bind/converters/data_converter_formula.cpp index 056954b..f7e310c 100644 --- a/src/data_bind/converters/data_converter_formula.cpp +++ b/src/data_bind/converters/data_converter_formula.cpp
@@ -143,7 +143,8 @@ } } } - else if (token->is<FormulaTokenArgumentSeparator>()) + else if (token->is<FormulaTokenArgumentSeparator>() && + operationsStack.size() > 0) { size_t index = operationsStack.size() - 1; while (index >= 0)