Skip to content

fix abi struct layout bugs and bind missing db.h functions#29

Merged
guycipher merged 1 commit into
masterfrom
tdb936
Jun 9, 2026
Merged

fix abi struct layout bugs and bind missing db.h functions#29
guycipher merged 1 commit into
masterfrom
tdb936

Conversation

@guycipher

Copy link
Copy Markdown
Member

the native config dbstats and stats structs were missing trailing fields causing out of bounds reads and writes and stack corruption when opening a database and reading database stats. added the finish compactions on close field to config the eight write amplification counters to dbstats and the seven write amplification counters to stats and exposed them all on the managed types

fixed register comparator which always failed because it passed a null function pointer. you can now register a custom managed comparator delegate or alias one of the six built in comparators under a new name

bound the remaining db.h surface that was missing init and finalize raise open file limit compression available cancel background work cf config load and save to ini and the s3 create config factory with tls and multipart options. added the busy error code

added sixteen tests covering the new surface fixed a stale max concurrent flushes assertion extended the csharp reference docs and bumped the package version to zero six two

the native config dbstats and stats structs were missing trailing fields
causing out of bounds reads and writes and stack corruption when opening a
database and reading database stats. added the finish compactions on close
field to config the eight write amplification counters to dbstats and the
seven write amplification counters to stats and exposed them all on the
managed types

fixed register comparator which always failed because it passed a null
function pointer. you can now register a custom managed comparator delegate
or alias one of the six built in comparators under a new name

bound the remaining db.h surface that was missing init and finalize raise
open file limit compression available cancel background work cf config load
and save to ini and the s3 create config factory with tls and multipart
options. added the busy error code

added sixteen tests covering the new surface fixed a stale max concurrent
flushes assertion extended the csharp reference docs and bumped the package
version to zero six two
@guycipher guycipher self-assigned this Jun 9, 2026
@guycipher guycipher merged commit 9efe8f2 into master Jun 9, 2026
4 checks passed
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