You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cipher_integrity_check reports HMAC failures on pages a VFS preallocated #634
PRAGMA cipher_integrity_check returns no rows for an intact database, whatever chunk size or preallocation the VFS applies.
Actual Behavior
With SQLITE_FCNTL_CHUNK_SIZE set, the unix VFS rounds the file up to the chunk, and cipher_integrity_check reports every zero block past the end of the database as HMAC verification failed. The loop in sqlcipher_codec_ctx_integrity_check runs up to sqlite3OsFileSize, so it checks blocks that were never database pages. The browser opfs-sahpool VFS does the same on every SQLITE_FCNTL_SIZE_HINT.
Steps to Reproduce
On Linux with gcc, make, tcl and the OpenSSL headers installed:
Activity
sjlombardo commentedon Nov 10, 2026
@LucaCappelletti94 thanks for the report, investigating.