System.Data.SQLite
Ticket Change Details
Not logged in
Overview

Artifact ID: 107eefdb92def77d025d906515df3f7a516e20f0
Ticket: fc994d007d8e4147f3caa05b0a8b49ef56ec6d5a
Fix bug in interop.c
User & Date: shane 2011-02-16 14:07:50
Changes

  1. Change comment to:

    This code in interop.c needs a null check on p before it accesses p->magic.

    __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 ret = sqlite3_finalize(stmt);
    return ret; }

    shane added on 2011-02-16 03:43:22 UTC:
    Added null check. Check-in [726d3115f6] .