Skip to content

Assigning a dict to the memo of an Unpickler object fails #111066

@PCigales

Description

@PCigales

Bug report

Bug description:

Hi,

When using the C accelerated implementation of the pickle module, assigning a dict to the memo of an Unpickler object leads to clearing the memo.
I think there is an error in Unpickler_set_memo as instructions at lines 7493 to 7495 (MemoCleanup and assignment of new_memo to self->memo) cancels the result of instruction at line 7482 (MemoPut).

Thanks in advance.

CPython versions tested on:

3.12

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions