mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add missing polarity check
This commit is contained in:
@@ -155,6 +155,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
|
||||
DataFlow::Node ret
|
||||
|
|
||||
replacer = getCallback(1) and
|
||||
guard.getOutcome() = test.getPolarity() and
|
||||
guard.getTest() = test and
|
||||
replacer.getParameter(0).flowsToExpr(test.getAnOperand()) and
|
||||
test.getAnOperand().getStringValue() = old and
|
||||
|
||||
Reference in New Issue
Block a user