File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
cpp/ql/src/semmle/code/cpp/models/implementations Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import semmle.code.cpp.models.interfaces.Taint
4
4
* The `std::basic_string` constructor(s).
5
5
*/
6
6
class StringConstructor extends TaintFunction {
7
- StringConstructor ( ) {
8
- this .hasQualifiedName ( "std" , "basic_string" , "basic_string" )
9
- }
7
+ StringConstructor ( ) { this .hasQualifiedName ( "std" , "basic_string" , "basic_string" ) }
10
8
11
9
override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
12
10
// flow from any constructor argument to return value
@@ -19,9 +17,7 @@ class StringConstructor extends TaintFunction {
19
17
* The standard function `std::string.c_str`.
20
18
*/
21
19
class StringCStr extends TaintFunction {
22
- StringCStr ( ) {
23
- this .hasQualifiedName ( "std" , "basic_string" , "c_str" )
24
- }
20
+ StringCStr ( ) { this .hasQualifiedName ( "std" , "basic_string" , "c_str" ) }
25
21
26
22
override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
27
23
// flow from string itself (qualifier) to return value
You can’t perform that action at this time.
0 commit comments