/ Check-in [0a98c8d7]
Login

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

Overview
Comment:Prevent a possible use-after-free bug in the query optimizer.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0a98c8d76ac86412d5eb68de994658c250989349
User & Date: drh 2016-11-20 12:00:27
Context
2016-11-23
21:08
Prevent a possible use-after-free bug in the query optimizer. check-in: 661b4506 user: drh tags: branch-3.15
2016-11-20
17:59
Fix harmless compiler warnings. check-in: b3b7b42d user: drh tags: trunk
12:00
Prevent a possible use-after-free bug in the query optimizer. check-in: 0a98c8d7 user: drh tags: trunk
2016-11-17
20:05
Fix a problem in rtreeD.test causing it to fail in OMIT_BUILTIN_TEST builds. check-in: d6b3779e user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/whereexpr.c.

  1266   1266       }
  1267   1267     }
  1268   1268   #endif /* SQLITE_ENABLE_STAT3_OR_STAT4 */
  1269   1269   
  1270   1270     /* Prevent ON clause terms of a LEFT JOIN from being used to drive
  1271   1271     ** an index for tables to the left of the join.
  1272   1272     */
         1273  +  testcase( pTerm!=&pWC->a[idxTerm] );
         1274  +  pTerm = &pWC->a[idxTerm];
  1273   1275     pTerm->prereqRight |= extraRight;
  1274   1276   }
  1275   1277   
  1276   1278   /***************************************************************************
  1277   1279   ** Routines with file scope above.  Interface to the rest of the where.c
  1278   1280   ** subsystem follows.
  1279   1281   ***************************************************************************/