Files
codeql/python/ql/test/experimental/library-tests/frameworks/stdlib/Decoding.py
Rasmus Lerchedahl Petersen 3a281a1bd6 Python: Adjust comments and tests
2020-10-14 14:40:11 +02:00

6 lines
246 B
Python

import pickle
import marshal
pickle.loads(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=pickle $decodeUnsafe
marshal.loads(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=marshal $decodeUnsafe