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 c904ba1 commit 65abb54Copy full SHA for 65abb54
cpp/ql/src/Security/CWE/CWE-311/CleartextBufferWrite.ql
@@ -26,6 +26,10 @@ class ToBufferConfiguration extends TaintTracking::Configuration {
26
27
override predicate isSource(DataFlow::Node source) { source instanceof FlowSource }
28
29
+ override predicate isSanitizer(DataFlow::Node node) {
30
+ node.asExpr().getUnspecifiedType() instanceof IntegralType
31
+ }
32
+
33
override predicate isSink(DataFlow::Node sink) {
34
exists(BufferWrite::BufferWrite w | w.getASource() = sink.asExpr())
35
}
0 commit comments