There was an error while loading. Please reload this page.
1 parent 9125d5a commit ed81f11Copy full SHA for ed81f11
backends/model_converter/fake_torch.py
@@ -30,7 +30,10 @@ class Dummy:
30
31
class MyPickle(pickle.Unpickler):
32
def find_class(self, module, name):
33
- print(module, name)
+ #making the following available will expose a vulnerability from 2011:
34
+ #globals, getattr, dict, apply
35
+
36
+ #print(module, name)
37
if name == 'FloatStorage':
38
return np.float32
39
if name == 'IntStorage':
0 commit comments