1
1
/**
2
- * Provides classes modeling security-relevant aspects of the ' dill' package.
2
+ * Provides classes modeling security-relevant aspects of the ` dill` PyPI package.
3
3
* See https://pypi.org/project/dill/.
4
4
*/
5
5
@@ -10,18 +10,24 @@ private import semmle.python.Concepts
10
10
private import semmle.python.ApiGraphs
11
11
12
12
/**
13
- * A call to `dill.loads`
14
- * See https://pypi.org/project/dill/ (which currently refers you
15
- * to https://docs.python.org/3/library/pickle.html#pickle.loads)
13
+ * Provides models for the `dill` PyPI package.
14
+ * See https://pypi.org/project/dill/.
16
15
*/
17
- private class DillLoadsCall extends Decoding:: Range , DataFlow:: CallCfgNode {
18
- DillLoadsCall ( ) { this = API:: moduleImport ( "dill" ) .getMember ( "loads" ) .getACall ( ) }
16
+ private module Dill {
17
+ /**
18
+ * A call to `dill.loads`
19
+ * See https://pypi.org/project/dill/ (which currently refers you
20
+ * to https://docs.python.org/3/library/pickle.html#pickle.loads)
21
+ */
22
+ private class DillLoadsCall extends Decoding:: Range , DataFlow:: CallCfgNode {
23
+ DillLoadsCall ( ) { this = API:: moduleImport ( "dill" ) .getMember ( "loads" ) .getACall ( ) }
19
24
20
- override predicate mayExecuteInput ( ) { any ( ) }
25
+ override predicate mayExecuteInput ( ) { any ( ) }
21
26
22
- override DataFlow:: Node getAnInput ( ) { result = this .getArg ( 0 ) }
27
+ override DataFlow:: Node getAnInput ( ) { result = this .getArg ( 0 ) }
23
28
24
- override DataFlow:: Node getOutput ( ) { result = this }
29
+ override DataFlow:: Node getOutput ( ) { result = this }
25
30
26
- override string getFormat ( ) { result = "dill" }
31
+ override string getFormat ( ) { result = "dill" }
32
+ }
27
33
}
0 commit comments