Skip to content

Check that new databases draw distinct nonzero salts on the prerelease leg - #51

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
upstream/zero-salt-regression-test
Nov 7, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
upstream/zero-salt-regression-test

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Owner

SQLCipher 4.20.0 gives a new database an all-zero salt when the VFS grows the file on SQLITE_FCNTL_SIZE_HINT before page 1 is written. It reads the salt back from the first 16 bytes of the file and draws a random one only when that read fails, and a preallocated file reads back as zeros. opfs-sahpool does this for every new database, and the unix VFS does it once a chunk size is set. The sahpool tests here check rows, integrity and wrong keys, so none of them noticed.

The sahpool tests now create two databases under one key and check that their salts are nonzero and differ, and the native interop program does the same on the unix VFS with a 64 KiB chunk size. The fix is sqlcipher/sqlcipher#633, still open against prerelease, so both checks run only on the prerelease leg. The release, next and beta carry the same code and keep the checks ignored until each of them carries a fix.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d496a044-727e-4b4a-a41f-9807024eec10
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8033f1e) to head (1d5ed75).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            3         3           
  Branches         3         3           
=========================================
  Hits             3         3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LucaCappelletti94
LucaCappelletti94 merged commit 93b6ca2 into main Nov 7, 2026
27 of 30 checks passed
@LucaCappelletti94
LucaCappelletti94 deleted the upstream/zero-salt-regression-test branch November 7, 2026 09:14
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