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 {
5555 ExcludeTarFilePy ( ) { this .getLocation ( ) .getFile ( ) .getBaseName ( ) = "tarfile.py" }
5656 }
5757
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-
7358 /**
7459 * Holds if `call` has an unsafe extraction filter, either by default (as the default is unsafe),
7560 * 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