File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cpp/ql/src/semmle/code/cpp/security Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ abstract class RemoteFlowSource extends DataFlow::Node {
15
15
16
16
private class TaintedReturnSource extends RemoteFlowSource {
17
17
string sourceType ;
18
+
18
19
TaintedReturnSource ( ) {
19
20
exists ( RemoteFlowFunction func , CallInstruction instr , FunctionOutput output |
20
21
asInstruction ( ) = instr and
@@ -24,13 +25,12 @@ private class TaintedReturnSource extends RemoteFlowSource {
24
25
)
25
26
}
26
27
27
- override string getSourceType ( ) {
28
- result = sourceType
29
- }
28
+ override string getSourceType ( ) { result = sourceType }
30
29
}
31
30
32
31
private class TaintedParameterSource extends RemoteFlowSource {
33
32
string sourceType ;
33
+
34
34
TaintedParameterSource ( ) {
35
35
exists ( RemoteFlowFunction func , WriteSideEffectInstruction instr , FunctionOutput output |
36
36
asInstruction ( ) = instr and
@@ -40,7 +40,5 @@ private class TaintedParameterSource extends RemoteFlowSource {
40
40
)
41
41
}
42
42
43
- override string getSourceType ( ) {
44
- result = sourceType
45
- }
43
+ override string getSourceType ( ) { result = sourceType }
46
44
}
You can’t perform that action at this time.
0 commit comments