mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: autoformat
This commit is contained in:
@@ -66,16 +66,13 @@ class StdStringAppend extends TaintFunction {
|
||||
getParameter(result).getType() = getDeclaringType().getTemplateArgument(0) // i.e. `std::basic_string::CharT`
|
||||
}
|
||||
|
||||
int getAnIteratorParameter() {
|
||||
getParameter(result).getType() instanceof Iterator
|
||||
}
|
||||
int getAnIteratorParameter() { getParameter(result).getType() instanceof Iterator }
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
// flow from string and parameter to string (qualifier) and return value
|
||||
(
|
||||
input.isQualifierObject() or
|
||||
input.isParameterDeref(getAStringParameter())
|
||||
or
|
||||
input.isParameterDeref(getAStringParameter()) or
|
||||
input.isParameter(getAnIteratorParameter())
|
||||
) and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user