Skip to content

Add fuzzer for mmap module#35

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

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

Conversation

@AdamKorcz
Copy link
Copy Markdown
Contributor

@AdamKorcz AdamKorcz commented Apr 10, 2026

Fuzzes the CPython mmap C module (Modules/mmapmodule.c) by creating a temporary file seeded with fuzzed bytes and memory-mapping it read/write. Drives a sequence of up to ten operations — find, rfind, read, readline, seek, getitem, write, setitem, move, and flush — with fuzzed offsets, lengths, needles, and byte values to exercise bounds handling and buffer management in the native implementation.

@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:33
@AdamKorcz AdamKorcz marked this pull request as ready for review April 22, 2026 20:13
Fuzzes the CPython mmap C module (Modules/mmapmodule.c) by creating a
temporary file seeded with fuzzed bytes and memory-mapping it read/write.
Drives a sequence of up to ten operations — find, rfind, read, readline,
seek, getitem, write, setitem, move, and flush — with fuzzed offsets,
lengths, needles, and byte values to exercise bounds handling and
buffer management in the native implementation.
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