-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rekey fails with no error message #164
Comments
Changing the page size is not possible for encrypted databases. The only way to change the page size is to decrypt the database, change the page size, run vacuum, and to reencrypt the database. The real problem is that changing the page size and then running AFAICR prior SQLite versions (before the
If I use the pragma in a SQLite shell, error messages are reported. But maybe the messages don't come from the pragma return value, but from the last error message. I have to check the code of the pragma handling. |
I was specifically changing the legacy page size cipher parameter. This was doing brute force testing constantly changing parameters and rekeying.
Just like with the backup case refusing bad operations is a good idea, and a helpful error message is ideal. |
Commit 02b69ad enforces the return of correct error messages. Additionally, legacy page size and plaintext header size are now checked for valued values. |
I was trying to change the page size for testing. The
rekey
pragma fails withSQLITE_ERROR
and doesn't set any error message.The text was updated successfully, but these errors were encountered: