File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,15 +394,21 @@ Function resolveCall(Call call) {
394394 * taint paths.
395395 */
396396module TaintedWithPath {
397+ private newtype TSingleton = MkSingleton ( )
398+
397399 /**
398400 * A taint-tracking configuration that matches sources and sinks in the same
399401 * way as the `tainted` predicate.
402+ *
403+ * Override `isSink` and `taintThroughGlobals` as needed, but do not provide
404+ * a characteristic predicate.
400405 */
401- class TaintTrackingConfiguration extends int {
402- TaintTrackingConfiguration ( ) { this = 1 }
403-
406+ class TaintTrackingConfiguration extends TSingleton {
404407 /** Override this to specify which elements are sinks in this configuration. */
405408 abstract predicate isSink ( Element e ) ;
409+
410+ /** Gets a textual representation of this element. */
411+ string toString ( ) { result = "TaintTrackingConfiguration" }
406412 }
407413
408414 private class AdjustedConfiguration extends DataFlow3:: Configuration {
You can’t perform that action at this time.
0 commit comments