Skip to content

security: fix potential segfault on exit - #567

Merged
boxdot merged 7 commits into
mainfrom
sqlcipher-segfault
Jul 26, 2026
Merged

security: fix potential segfault on exit #567
boxdot merged 7 commits into
mainfrom
sqlcipher-segfault

Conversation

@boxdot

@boxdot boxdot commented Jul 26, 2026

Copy link
Copy Markdown
Owner

sqlcipher introduced a cleanup in atexit handler, which is unsafe when
other threads may still be closing database connections, which is the
case in sqlx. This commit uses a patched version of sqlcipher which
disables this feature. Instead of segfaulting and potentially leaking
secrets in a coredump, we rely on the clean up by the OS.

boxdot added 7 commits July 23, 2026 11:37
sqlcipher introduced a cleanup in atexit handler, which is unsafe when
other threads may still be closing database connections, which is the
case in sqlx. This commit uses a patched version of sqlcipher which
disables this feature. Instead of segfaulting and potentially leaking
secrets in a coredump, we rely on the OS to clean up them.
@boxdot
boxdot merged commit 03d149f into main Jul 26, 2026
10 checks passed
@boxdot
boxdot deleted the sqlcipher-segfault branch July 26, 2026 09:57
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