evalidate 2.1.7__tar.gz → 2.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {evalidate-2.1.7 → evalidate-2.1.8}/PKG-INFO +1 -1
- {evalidate-2.1.7 → evalidate-2.1.8}/evalidate/__init__.py +2 -2
- {evalidate-2.1.7 → evalidate-2.1.8}/evalidate/credits.txt +2 -2
- {evalidate-2.1.7 → evalidate-2.1.8}/evalidate/security.py +4 -1
- {evalidate-2.1.7 → evalidate-2.1.8}/.gitignore +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/LICENSE +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/README.md +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/benchmark/benchmark.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/evalidate/cli/genfakeproducts.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/evalidate/cli/jg.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/examples/basic.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/pyproject.toml +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/setup.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/__init__.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_exc.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_expr.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_feature.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_jailbreak.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_locals_globals.py +0 -0
- {evalidate-2.1.7 → evalidate-2.1.8}/tests/test_no_mutation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evalidate
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.8
|
|
4
4
|
Summary: Validation and secure evaluation of untrusted python expressions
|
|
5
5
|
Project-URL: Homepage, https://github.com/yaroslaff/evalidate
|
|
6
6
|
Project-URL: Issues, https://github.com/yaroslaff/evalidate/issues
|
|
@@ -6,7 +6,7 @@ import ast
|
|
|
6
6
|
import dataclasses
|
|
7
7
|
from typing import Callable
|
|
8
8
|
|
|
9
|
-
__version__ = '2.1.
|
|
9
|
+
__version__ = '2.1.8'
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class EvalException(Exception):
|
|
@@ -106,7 +106,7 @@ base_eval_model = EvalModel(
|
|
|
106
106
|
"In", "NotIn", # "aaa" in i['list']
|
|
107
107
|
"IfExp", # for if expressions, like: expr1 if expr2 else expr3
|
|
108
108
|
"NameConstant", # for True and False constants
|
|
109
|
-
"Div",
|
|
109
|
+
"Div", # Mod removed because of "%1000000000d" % 0 attack
|
|
110
110
|
"Is", "IsNot"
|
|
111
111
|
],
|
|
112
112
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Yaroslav Polyakov: main author
|
|
2
2
|
|
|
3
3
|
Daniel Rech: python3 porting, ideas for IfExp function call filtering
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Nagizaaz Shaik: .format() and .format_map() attacks for security_check()
|
|
5
|
+
Aleksandr Kovalko: discovery of memory exhaustion problem with 'Mod' (%) node allowed
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|