-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
numpy_poc example has the following class as an example of an unsafe class:
...
class Test(object):
def __init__(self):
self.a = 1
def __reduce__(self):
# Runs the other PoC found in /examples
return (os.system, ("python pytorch_poc.py",))
...removing the unsafe __reduce__ method from the class is not enough to make it safe:
...
class Test(object):
def __init__(self):
self.a = 1
...$ python example/numpy_poc.py
...
Is this is_likely_safe?
❌Is this behavior expected?
Metadata
Metadata
Assignees
Labels
No labels