Skip to content

Commit 453529e

Browse files
authored
Merge pull request #575 from jbj/UnsafeCreateProcessCall-nullValue
C++: Avoid using nullValue predicate (rc/1.19)
2 parents dd37914 + 8654ebc commit 453529e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-428/UnsafeCreateProcessCall.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class NullAppNameCreateProcessFunctionConfiguration extends DataFlow::Configurat
6868
}
6969

7070
override predicate isSource(DataFlow::Node source) {
71-
nullValue(source.asExpr())
71+
source.asExpr() instanceof NullValue
7272
}
7373

7474
override predicate isSink(DataFlow::Node sink) {

0 commit comments

Comments
 (0)