/ Check-in [c36761e1]
Login

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

Overview
Comment:Fix a potential crash that may follow an OOM or other system error in the shell tool.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c36761e1a05c15c48468dd793faf06636f5dcfd3b4314074c4d9c9eac5c2695c
User & Date: dan 2017-10-12 11:33:13
Context
2017-10-12
13:21
Merge fixes from the 3.21 branch. check-in: 29292169 user: drh tags: trunk
11:33
Fix a potential crash that may follow an OOM or other system error in the shell tool. check-in: c36761e1 user: dan tags: trunk
11:13
Update some test cases to work with SQLITE_OMIT_VIRTUALTABLE and DEFAULT_AUTOVACUUM builds. check-in: 4b68f424 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  3797   3797           isIPK = 1;
  3798   3798         }else{
  3799   3799           isIPK = 0;
  3800   3800         }
  3801   3801       }
  3802   3802     }
  3803   3803     sqlite3_finalize(pStmt);
         3804  +  if( !azCol ) return 0;
  3804   3805     azCol[0] = 0;
  3805   3806     azCol[nCol+1] = 0;
  3806   3807   
  3807   3808     /* The decision of whether or not a rowid really needs to be preserved
  3808   3809     ** is tricky.  We never need to preserve a rowid for a WITHOUT ROWID table
  3809   3810     ** or a table with an INTEGER PRIMARY KEY.  We are unable to preserve
  3810   3811     ** rowids on tables where the rowid is inaccessible because there are other