Issue #25761: Improved error reporting about truncated pickle data in · pythoncapi/cpython@90493ab · GitHub
Skip to content

Commit 90493ab

Browse files
Issue python#25761: Improved error reporting about truncated pickle data in
C implementation of unpickler. UnpicklingError is now raised instead of AttributeError and ValueError in some cases.
1 parent df6ff7b commit 90493ab

3 files changed

Lines changed: 46 additions & 41 deletions

File tree

Lib/test/test_pickle.py

Lines changed: 1 addition & 2 deletions

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ Core and Builtins
8989
Library
9090
-------
9191

92+
- Issue #25761: Improved error reporting about truncated pickle data in
93+
C implementation of unpickler. UnpicklingError is now raised instead of
94+
AttributeError and ValueError in some cases.
95+
9296
- Issue #26798: Add BLAKE2 (blake2b and blake2s) to hashlib.
9397

9498
- Issue #25596: Optimized glob() and iglob() functions in the

Modules/_pickle.c

Lines changed: 41 additions & 39 deletions

0 commit comments

Comments
 (0)