File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
cpp/ql/src/semmle/code/cpp/security Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import semmle.code.cpp.models.interfaces.FlowSource
11
11
abstract class RemoteFlowSource extends DataFlow:: Node {
12
12
}
13
13
14
- class FileDescriptorTaintedReturnSource extends RemoteFlowSource {
15
- FileDescriptorTaintedReturnSource ( ) {
14
+ private class TaintedReturnSource extends RemoteFlowSource {
15
+ TaintedReturnSource ( ) {
16
16
exists ( RemoteFlowFunction func , CallInstruction instr , FunctionOutput output |
17
17
asInstruction ( ) = instr and
18
18
instr .getStaticCallTarget ( ) = func and
@@ -22,14 +22,13 @@ class FileDescriptorTaintedReturnSource extends RemoteFlowSource {
22
22
}
23
23
}
24
24
25
- class FileTaintedParameterSource extends RemoteFlowSource {
26
- FileTaintedParameterSource ( ) {
27
- exists ( RemoteFlowFunction func , ReadSideEffectInstruction instr , FunctionOutput output |
25
+ private class TaintedParameterSource extends RemoteFlowSource {
26
+ TaintedParameterSource ( ) {
27
+ exists ( RemoteFlowFunction func , WriteSideEffectInstruction instr , FunctionOutput output |
28
28
asInstruction ( ) = instr and
29
29
instr .getPrimaryInstruction ( ) .( CallInstruction ) .getStaticCallTarget ( ) = func and
30
30
func .hasFlowSource ( output ) and
31
31
output .isParameterDeref ( instr .getIndex ( ) )
32
32
)
33
33
}
34
34
}
35
-
You can’t perform that action at this time.
0 commit comments