System.Data.SQLite

Check-in [726d3115f6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added null check on p in sqlite3_finalize_interop(). Fix for [fc994d007d].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 726d3115f6afa688b8c6e121d1e032c355f91eaf
User & Date: shaneh 2011-02-16 03:42:19.000
Original Comment: Added null check on p in sqlite3_finalize_interop().
References
2011-02-16
14:07 Ticket [fc994d007d] Fix bug in interop.c status still Fixed with 1 other change artifact: 107eefdb92 user: shane
Context
2011-02-16
03:45
Removed dependency on app.config from project System.Data.SQLite - Netmodule. Fix for [9db22d7e32]. check-in: 312197770b user: shaneh tags: trunk
03:42
Added null check on p in sqlite3_finalize_interop(). Fix for [fc994d007d]. check-in: 726d3115f6 user: shaneh tags: trunk
03:22
Updates for compiling design time support (includes missing DLLs for VS2005, 2008, and 2010). check-in: b0ae15a64c user: shaneh tags: trunk
Changes
Unified Diff Show Whitespace Changes Patch
Changes to SQLite.Interop/interop.c.
195
196
197
198
199
200
201
202
203
204
205

206
207
208
209
210
211
212
__declspec(dllexport) int WINAPI sqlite3_finalize_interop(sqlite3_stmt *stmt)
{
  Vdbe *p;
  sqlite3 *db;
  int ret;

  p = (Vdbe *)stmt;
  db = (p == NULL) ? NULL : p->db;

  if (p->magic == VDBE_MAGIC_DEAD)
  {

    if (db == NULL)
    {
      sqlite3_free(p);
      ret = SQLITE_OK;
    }
  }
  else







<
<
|

>







195
196
197
198
199
200
201


202
203
204
205
206
207
208
209
210
211
__declspec(dllexport) int WINAPI sqlite3_finalize_interop(sqlite3_stmt *stmt)
{
  Vdbe *p;
  sqlite3 *db;
  int ret;

  p = (Vdbe *)stmt;


  if (p && p->magic == VDBE_MAGIC_DEAD)
  {
    db = p->db;
    if (db == NULL)
    {
      sqlite3_free(p);
      ret = SQLITE_OK;
    }
  }
  else