Page 1 of 1

[patch_applied] SQLite Heap Corruption

Posted: 07.09.2011, 16:31
by krassonkel
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

Posted: 07.09.2011, 20:54
by mdaems
Patch done. SVN Rev. 932

Mark