Skip to content

bpo-38876: Raise pickle.UnpicklingError when loading an item from mem…#47

Merged
sthagen merged 0 commit intosthagen:masterfrom
python:master
Nov 24, 2019
Merged

bpo-38876: Raise pickle.UnpicklingError when loading an item from mem…#47
sthagen merged 0 commit intosthagen:masterfrom
python:master

Conversation

@sthagen
Copy link
Copy Markdown
Owner

@sthagen sthagen commented Nov 24, 2019

…o for invalid input (pythonGH-17335)

The previous code was raising a KeyError for both the Python and C implementation.
This was caused by the specified index of an invalid input which did not exist
in the memo structure, where the pickle stores what objects it has seen.
The malformed input would have caused either a BINGET or LONG_BINGET load
from the memo, leading to a KeyError as the determined index was bogus.

https://bugs.python.org/issue38876

https://bugs.python.org/issue38876

@sthagen sthagen merged this pull request into sthagen:master Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant