File sqlite3-CVE-2017-2518.patch of Package sqlite3.13258

--- sqlite3.c.orig
+++ sqlite3.c
@@ -117693,6 +117693,8 @@ static void exprAnalyze(
   /* Prevent ON clause terms of a LEFT JOIN from being used to drive
   ** an index for tables to the left of the join.
   */
+  testcase( pTerm!=&pWC->a[idxTerm] );
+  pTerm = &pWC->a[idxTerm];
   pTerm->prereqRight |= extraRight;
 }
 
openSUSE Build Service is sponsored by