System.Data.SQLite
Check-in [726d3115f6]
Not logged in

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 | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 726d3115f6afa688b8c6e121d1e032c355f91eaf
User & Date: shaneh 2011-02-16 03:42:19
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to SQLite.Interop/interop.c.

   195    195   __declspec(dllexport) int WINAPI sqlite3_finalize_interop(sqlite3_stmt *stmt)
   196    196   {
   197    197     Vdbe *p;
   198    198     sqlite3 *db;
   199    199     int ret;
   200    200   
   201    201     p = (Vdbe *)stmt;
   202         -  db = (p == NULL) ? NULL : p->db;
   203         -
   204         -  if (p->magic == VDBE_MAGIC_DEAD)
          202  +  if (p && p->magic == VDBE_MAGIC_DEAD)
   205    203     {
          204  +    db = p->db;
   206    205       if (db == NULL)
   207    206       {
   208    207         sqlite3_free(p);
   209    208         ret = SQLITE_OK;
   210    209       }
   211    210     }
   212    211     else