Skip to content

Add fuzzer for pickle module#36

Open
AdamKorcz wants to merge 1 commit intopython:mainfrom
AdamKorcz:add-pickle-fuzzer
Open

Add fuzzer for pickle module#36
AdamKorcz wants to merge 1 commit intopython:mainfrom
AdamKorcz:add-pickle-fuzzer

Conversation

@AdamKorcz
Copy link
Copy Markdown
Contributor

@AdamKorcz AdamKorcz commented Apr 10, 2026

Fuzzes the CPython _pickle C module (Modules/_pickle.c). Dispatches to four operations: pickle.dumps() with protocols 0–5 over a mix of container types (bytes, str, int list, tuple, set, frozenset, bytearray, dict) built from fuzzed data; pickle.loads() driven through restricted and persistent-load Unpickler subclasses (including a fix_imports/bytes encoding variant); Pickler.dump() with memo clearing between objects; and a dumps/loads roundtrip to exercise both sides together.

@AdamKorcz AdamKorcz requested a review from a team as a code owner April 10, 2026 19:54
@AdamKorcz AdamKorcz marked this pull request as draft April 10, 2026 20:34
@AdamKorcz AdamKorcz marked this pull request as ready for review April 22, 2026 20:33
Fuzzes the CPython _pickle C module (Modules/_pickle.c). Dispatches to
four operations: pickle.dumps() with protocols 0–5 over a mix of
container types (bytes, str, int list, tuple, set, frozenset, bytearray,
dict) built from fuzzed data; pickle.loads() driven through restricted
and persistent-load Unpickler subclasses (including a fix_imports/bytes
encoding variant); Pickler.dump() with memo clearing between objects;
and a dumps/loads roundtrip to exercise both sides together.
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