-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Assertion failure when compiled with SQLITE_DEBUG
#55
Comments
When SQLite3MC fails to decrypt a database page, the error code of the SQLite pager is set to a value other than I will look into the error handling and I will try to adjust it to avoid the problem you experienced. |
Perfect. And thank you for the fast response, as always. |
Commit 11a7462 should fix the issue. A new release will be made shortly after the release of SQLite version 3.37.0 (expected in early December 2021). |
Amazing. Such good news. I almost didn't report this since it's very niche but now I'm glad I brought this to your attention. Gracias. 👏🏼 |
The latest release (version 1.3.5) now includes this fix. |
It's possible now since utelle/SQLite3MultipleCiphers#55 is fixed.
Nice. All tests are passing now. |
What I wanted to know is if this is the intended behavior for Sqlitemc.
I'm compiling Sqlitemc with
SQLITE_DEBUG
set just for the tests. The assertion failure happens if you try to decrypt the DB with an incorrect passphrase (Sqleet) usingPRAGMA key
which exactly is the scenario I'm trying to test with Mocha. But since JS doesn't catch C++ runtime errors, the whole test process fails because of it.Was this
assert()
supposed fail on the above mentioned scenario? 🤔The text was updated successfully, but these errors were encountered: