We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ace9da commit ab4b823Copy full SHA for ab4b823
cpp/ql/src/experimental/Likely Bugs/DerefNullResult.ql
@@ -24,7 +24,7 @@ where
24
DataFlow::localFlow(DataFlow::exprNode(v.getAnAccess()),
25
DataFlow::exprNode(fc.getArgument(pd.getIndex()))) and
26
// this variable v was assigned by a call to the nuller function
27
- v.getAnAssignedValue() = nuller.getACallToThisFunction() and
+ unique( | | v.getAnAssignedValue()) = nuller.getACallToThisFunction() and
28
// this variable v is not accessed for an operation (check for NULLness)
29
not exists(VariableAccess vc |
30
vc.getTarget() = v and
0 commit comments