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 {
1515
1616private class TaintedReturnSource extends RemoteFlowSource {
1717 string sourceType ;
18+
1819 TaintedReturnSource ( ) {
1920 exists ( RemoteFlowFunction func , CallInstruction instr , FunctionOutput output |
2021 asInstruction ( ) = instr and
@@ -24,13 +25,12 @@ private class TaintedReturnSource extends RemoteFlowSource {
2425 )
2526 }
2627
27- override string getSourceType ( ) {
28- result = sourceType
29- }
28+ override string getSourceType ( ) { result = sourceType }
3029}
3130
3231private class TaintedParameterSource extends RemoteFlowSource {
3332 string sourceType ;
33+
3434 TaintedParameterSource ( ) {
3535 exists ( RemoteFlowFunction func , WriteSideEffectInstruction instr , FunctionOutput output |
3636 asInstruction ( ) = instr and
@@ -40,7 +40,5 @@ private class TaintedParameterSource extends RemoteFlowSource {
4040 )
4141 }
4242
43- override string getSourceType ( ) {
44- result = sourceType
45- }
43+ override string getSourceType ( ) { result = sourceType }
4644}
You can’t perform that action at this time.
0 commit comments