mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
C++: fix implicit this
This commit is contained in:
committed by
Mathias Vorreiter Pedersen
parent
b2e4276bc8
commit
fe891746bf
@@ -77,7 +77,7 @@ abstract class FunctionWithWrappers extends Function {
|
||||
) {
|
||||
// base case
|
||||
func = this and
|
||||
interestingArg(paramIndex) and
|
||||
this.interestingArg(paramIndex) and
|
||||
callChain = toCause(func, paramIndex) and
|
||||
depth = 0
|
||||
or
|
||||
@@ -101,7 +101,7 @@ abstract class FunctionWithWrappers extends Function {
|
||||
private predicate wrapperFunctionAnyDepth(Function func, int paramIndex, string cause) {
|
||||
// base case
|
||||
func = this and
|
||||
interestingArg(paramIndex) and
|
||||
this.interestingArg(paramIndex) and
|
||||
cause = toCause(func, paramIndex)
|
||||
or
|
||||
// recursive step
|
||||
@@ -147,7 +147,7 @@ abstract class FunctionWithWrappers extends Function {
|
||||
)
|
||||
or
|
||||
not this.wrapperFunctionLimitedDepth(func, paramIndex, _, _) and
|
||||
cause = wrapperFunctionAnyDepthUnique(func, paramIndex)
|
||||
cause = this.wrapperFunctionAnyDepthUnique(func, paramIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user