Skip to content
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

Deadlock when trying to access database with invalid crypt key [CORE4999] #5287

Closed
firebird-automations opened this issue Nov 9, 2015 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @AlexPeshkoff

After changing "Value" parameter of DbCrypt_example plugin an attempt to access previously encrypted database (i.e. access database with wrong decrypt key) makes engine to hang forever

Commits: ee96e00 FirebirdSQL/fbt-repository@0409f47

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

description: After changing "Value" parameter of DbCrypt_example plugin an attempt to access previously encrypted database causes hang => After changing "Value" parameter of DbCrypt_example plugin an attempt to access previously encrypted database (i.e. access database with wrong decrypt key) makes engine to hang forever

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.0 [ 10048 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

Because a page decrypted with a wrong key is effectively just a pile of junk, accessing it can produce any kind of error. You'd better check decryption result (and consistency of the page at all) with some kind of checksum.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment