File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
python/ql/lib/semmle/python/security/dataflow Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -55,21 +55,6 @@ module TarSlip {
55
55
ExcludeTarFilePy ( ) { this .getLocation ( ) .getFile ( ) .getBaseName ( ) = "tarfile.py" }
56
56
}
57
57
58
- private DataFlow:: TypeTrackingNode unsafeFilter ( DataFlow:: TypeTracker t ) {
59
- t .start ( ) and
60
- (
61
- result .asExpr ( ) .( StrConst ) .getS ( ) = "fully_trusted"
62
- or
63
- result .asExpr ( ) instanceof None
64
- )
65
- or
66
- exists ( DataFlow:: TypeTracker t2 | result = unsafeFilter ( t2 ) .track ( t2 , t ) )
67
- }
68
-
69
- private DataFlow:: Node unsafeFilter ( ) {
70
- unsafeFilter ( DataFlow:: TypeTracker:: end ( ) ) .flowsTo ( result )
71
- }
72
-
73
58
/**
74
59
* Holds if `call` has an unsafe extraction filter, either by default (as the default is unsafe),
75
60
* or by being set to an explicitly unsafe value, such as `"fully_trusted"`, or `None`.
You can’t perform that action at this time.
0 commit comments