sourcemod/extensions/sqlite/driver
peace-maker 47eb7d60e5 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.
2016-10-03 16:31:17 +01:00
..
SqDatabase.cpp Add missing buffer size check to SQLite QuoteString impl 2016-02-15 14:19:11 +00:00
SqDatabase.h Fix use-after-free crash in SQLite extension (#481) 2016-10-03 16:31:17 +01:00
SqDriver.cpp Fix use-after-free crash in SQLite extension (#481) 2016-10-03 16:31:17 +01:00
SqDriver.h Fix use-after-free crash in SQLite extension (#481) 2016-10-03 16:31:17 +01:00
SqQuery.cpp Add atomic reference counting and port DBI (bug 5876 part 3, r=ds). 2013-08-23 00:18:13 -07:00
SqQuery.h Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
SqResults.cpp SourceMod can now be somewhat compiled on OS X for patch sanity testing (bug 3516, r=ds). 2008-12-23 01:33:37 -05:00
SqResults.h Spring Cleaning, Part Ichi (1) 2008-03-30 07:00:22 +00:00