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?
numpy_poc example has the following class as an example of an unsafe class:
removing the unsafe
__reduce__method from the class is not enough to make it safe:$ python example/numpy_poc.py ... Is this is_likely_safe? ❌Is this behavior expected?