/ Check-in [80de1ad5]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Add extra API armor on the sqlite3_bind_blob() interface.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 80de1ad5eb4c3839756b6467d5b8195b4abfb1f8
User & Date: drh 2016-02-18 01:29:12
Context
2016-02-18
13:32
Remove an unnecessary "include <tcl.h>" line from fts5_test_mi.c. check-in: 31d8b69e user: dan tags: trunk
01:36
Merge recent performance enhancements and the enhanced API_ARMOR from trunk. check-in: b7fa0fb3 user: drh tags: apple-osx
01:29
Add extra API armor on the sqlite3_bind_blob() interface. check-in: 80de1ad5 user: drh tags: trunk
2016-02-17
20:47
When VDBE opcodes fail, they cause an immediate exit from the loop, rather than depending on the rc==SQLITE_OK test at the top of the loop. This is faster and smaller. check-in: 24c7151c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeapi.c.

  1297   1297   int sqlite3_bind_blob(
  1298   1298     sqlite3_stmt *pStmt, 
  1299   1299     int i, 
  1300   1300     const void *zData, 
  1301   1301     int nData, 
  1302   1302     void (*xDel)(void*)
  1303   1303   ){
         1304  +#ifdef SQLITE_ENABLE_API_ARMOR
         1305  +  if( nData<0 ) return SQLITE_MISUSE_BKPT;
         1306  +#endif
  1304   1307     return bindText(pStmt, i, zData, nData, xDel, 0);
  1305   1308   }
  1306   1309   int sqlite3_bind_blob64(
  1307   1310     sqlite3_stmt *pStmt, 
  1308   1311     int i, 
  1309   1312     const void *zData, 
  1310   1313     sqlite3_uint64 nData,