Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

disable fts3_tokenizer

Bug: 13177500
Change-Id: I1581c7ca8ac6d931375fc2cbcbe13f43513ce3c7
(cherry picked from commit a586535)
  • Loading branch information...
commit f764dbb50f2bfe95fa993fa670fae926cf36abce 1 parent 2d758ba
Nick Kralevich authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  dist/sqlite3.c
View
2  dist/sqlite3.c
@@ -120222,7 +120222,9 @@ SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db, const char* registerAs){ // Andr
** module with sqlite.
*/
if( SQLITE_OK==rc
+#ifndef ANDROID /* fts3_tokenizer disabled for security reasons */
&& SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer"))
+#endif
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1))
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", 1))
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 1))
Please sign in to comment.
Something went wrong with that request. Please try again.