[patch_applied] SQLite Heap Corruption
Posted: 07.09.2011, 16:31
Heyho,
under some rare circumstances and when using encryption, a heap corruption could happen in the SQLite driver.
The problem is that the ErrorMessage variable gets freed inside CheckSQLiteError even when it's set to an empty string. Since this variable isn't used for FPlainDriver.Key, it's never set and therefore doesn't have to be freed.
I attached a patch to fix that.
Regards, kroimon
under some rare circumstances and when using encryption, a heap corruption could happen in the SQLite driver.
The problem is that the ErrorMessage variable gets freed inside CheckSQLiteError even when it's set to an empty string. Since this variable isn't used for FPlainDriver.Key, it's never set and therefore doesn't have to be freed.
I attached a patch to fix that.
Regards, kroimon