[patch_applied] SQLite Heap Corruption

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
krassonkel
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 13.07.2008, 10:22
Contact:

[patch_applied] SQLite Heap Corruption

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Patch done. SVN Rev. 932

Mark
Image
Locked