File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
cpp/ql/src/Likely Bugs/OO Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class UnsafeUseOfThisConfig extends MustFlowConfiguration {
27
27
override predicate isSink ( Operand sink ) { isSink ( sink , _) }
28
28
}
29
29
30
- /** Holds if `instr ` is a `this` pointer used by the call instruction `call`. */
30
+ /** Holds if `sink ` is a `this` pointer used by the call instruction `call`. */
31
31
predicate isSink ( Operand sink , CallInstruction call ) {
32
32
exists ( PureVirtualFunction func |
33
33
call .getStaticCallTarget ( ) = func and
@@ -37,7 +37,12 @@ predicate isSink(Operand sink, CallInstruction call) {
37
37
)
38
38
}
39
39
40
- /** Holds if `init` initializes the `this` pointer in class `c`. */
40
+ /**
41
+ * Holds if `source` initializes the `this` pointer in class `c`.
42
+ *
43
+ * The string `msg` describes whether the enclosing function is a
44
+ * constructor or destructor.
45
+ */
41
46
predicate isSource ( InitializeParameterInstruction source , string msg , Class c ) {
42
47
(
43
48
exists ( Constructor func |
You can’t perform that action at this time.
0 commit comments