diff options
| author | Paul Ivanov <pivanov5@bloomberg.net> | 2019-01-30 14:22:44 -0800 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2019-04-16 19:41:08 -0600 |
| commit | 483f0a5d765033294a3b8ce9a04d4fc96170bbfc (patch) | |
| tree | 06320ae00f76e9f2a4a272eb5c75952978cb7a9f /numpy/core | |
| parent | fb425b769bbe4ff4b5a28f58876871414cc8bb12 (diff) | |
| download | numpy-pr/12889.tar.gz | |
BUG: load fails when using pickle without allow_pickle=Truepr/12889
a partial mitigation of #12759.
see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/tests/test_regression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 4b551d8aa..4e48c82b7 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -98,7 +98,7 @@ class TestRegression(object): f = BytesIO() pickle.dump(ca, f, protocol=proto) f.seek(0) - ca = np.load(f) + ca = np.load(f, allow_pickle=True) f.close() def test_noncontiguous_fill(self): |
