-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use-after-free crash in SQLite extension (#481)
When the server crashed and the process got terminated, the SqDriver instance was killed first (e.g. by atexit). SqDatabase tries to access SqDriver in its destructor. This patch tells SqDatabase to not use anything from SqDriver anymore after SqDriver got destroyed. Next to that, the clientprefs extension relied on the IDatabase pointer being valid to get the driver pointer. Cache the pointer, so the dbi system still knows the IDBThreadOperation belonged to the now gone driver, even after the database object is gone.
- Loading branch information
1 parent
2deaa66
commit 47eb7d6
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters