mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
limit size of getStringValue
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user