Open
Conversation
1695f72 to
e9b5dbb
Compare
e9b5dbb to
921f004
Compare
sethmlarson
approved these changes
Apr 22, 2026
Fuzzes CPython's dbm backend — whichever implementation dbm.open() selects on the build, typically the gdbm C module (Modules/_gdbmmodule.c) or _dbm (Modules/_dbmmodule.c). Opens a fresh GDBM-style database in a temp directory with mode "c", then drives a sequence of up to 20 fuzzed operations — store (with fuzzed-length keys and values), get, key listing via db.keys(), membership-guarded delete, and iteration with value lookup — to exercise the hash-table insert/lookup/delete paths and the on-disk file handling in the C backend.
921f004 to
9f96892
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fuzzes CPython's dbm backend — whichever implementation
dbm.open()selects on the build, typically the gdbm C module (Modules/_gdbmmodule.c) or _dbm (Modules/_dbmmodule.c). Opens a fresh GDBM-style database in a temp directory with mode "c", then drives a sequence of up to 20 fuzzed operations — store (with fuzzed-length keys and values), get, key listing viadb.keys(), membership-guarded delete, and iteration with value lookup — to exercise the hash-table insert/lookup/delete paths and the on-disk file handling in the C backend.