limit size of getStringValue

This commit is contained in:
Erik Krogh Kristensen
2020-06-22 10:29:53 +02:00
parent ac89559b20
commit 8d1b080d78

View File

@@ -1519,7 +1519,8 @@ class AddExpr extends @addexpr, BinaryExpr {
override string getOperator() { result = "+" }
override string getStringValue() {
result = getLeftOperand().getStringValue() + getRightOperand().getStringValue()
result = getLeftOperand().getStringValue() + getRightOperand().getStringValue() and
result.length() < 1000 * 1000
}
}