/ Check-in [7b412224]
Login

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

Overview
Comment:Add an assert() in an attempt to repro an ASAN warning from OSSFuzz.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7b41222428dcebaae2e9a0e8192e091b6fdee5b1163a5fa14ca1cd4f06354983
User & Date: drh 2019-02-11 01:58:34
Context
2019-02-11
11:04
Avoid using a "return void_function();" statement in void function sqlite3WalSnapshotUnlock(). It provokes a warning from some compilers. check-in: 4a4952d3 user: dan tags: trunk
01:58
Add an assert() in an attempt to repro an ASAN warning from OSSFuzz. check-in: 7b412224 user: drh tags: trunk
2019-02-09
19:23
Change a few assert() statements in fts3 that might fail if the database is corrupt. check-in: db74a56a user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  1817   1817       sqlite3CreateIndex(pParse, 0, 0, 0, pList, pTab->keyConf, 0, 0, 0, 0,
  1818   1818                          SQLITE_IDXTYPE_PRIMARYKEY);
  1819   1819       if( db->mallocFailed || pParse->nErr ) return;
  1820   1820       pPk = sqlite3PrimaryKeyIndex(pTab);
  1821   1821       pTab->iPKey = -1;
  1822   1822     }else{
  1823   1823       pPk = sqlite3PrimaryKeyIndex(pTab);
         1824  +    assert( pPk!=0 );
  1824   1825   
  1825   1826       /*
  1826   1827       ** Remove all redundant columns from the PRIMARY KEY.  For example, change
  1827   1828       ** "PRIMARY KEY(a,b,a,b,c,b,c,d)" into just "PRIMARY KEY(a,b,c,d)".  Later
  1828   1829       ** code assumes the PRIMARY KEY contains no repeated columns.
  1829   1830       */
  1830   1831       for(i=j=1; i<pPk->nKeyCol; i++){