mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
don't compute GVN for string constants of length more than 50, as this results in a infinite loop 😕
This commit is contained in:
@@ -129,6 +129,7 @@ private predicate classPredicateCallValueNumber(
|
||||
|
||||
private predicate literalValueNumber(Literal lit, string value, Type t) {
|
||||
lit.(String).getValue() = value and
|
||||
value.length() <= 50 and
|
||||
t instanceof StringClass
|
||||
or
|
||||
lit.(Integer).getValue().toString() = value and
|
||||
|
||||
Reference in New Issue
Block a user