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 {
2727 override predicate isSink ( Operand sink ) { isSink ( sink , _) }
2828}
2929
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`. */
3131predicate isSink ( Operand sink , CallInstruction call ) {
3232 exists ( PureVirtualFunction func |
3333 call .getStaticCallTarget ( ) = func and
@@ -37,7 +37,12 @@ predicate isSink(Operand sink, CallInstruction call) {
3737 )
3838}
3939
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+ */
4146predicate isSource ( InitializeParameterInstruction source , string msg , Class c ) {
4247 (
4348 exists ( Constructor func |
You can’t perform that action at this time.
0 commit comments