File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
python/ql/test/experimental/library-tests/frameworks/yaml Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11import yaml
2- from yaml import SafeLoader
32
3+ # Unsafe:
44yaml .load (payload ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
5- yaml .load (payload , SafeLoader ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
6- yaml .load (payload , Loader = SafeLoader ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
7- yaml .load (payload , Loader = yaml .BaseLoader ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
8-
9- yaml .safe_load (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
5+ yaml .load (payload , yaml .Loader ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
106yaml .unsafe_load (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
117yaml .full_load (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
128
9+ # Safe
10+ yaml .load (payload , yaml .SafeLoader ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
11+ yaml .load (payload , Loader = yaml .SafeLoader ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
12+ yaml .load (payload , yaml .BaseLoader ) # $decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
13+ yaml .safe_load (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
14+
15+ # load_all variants
1316yaml .load_all (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
1417yaml .safe_load_all (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML
1518yaml .unsafe_load_all (payload ) # $ decodeInput=payload decodeOutput=Attribute() decodeFormat=YAML decodeMayExecuteInput
You can’t perform that action at this time.
0 commit comments