Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a586535

Browse files
committed
disable fts3_tokenizer
Bug: 13177500 Change-Id: I1581c7ca8ac6d931375fc2cbcbe13f43513ce3c7
1 parent 399dce6 commit a586535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dist/sqlite3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120232,7 +120232,9 @@ SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){
120232120232
** module with sqlite.
120233120233
*/
120234120234
if( SQLITE_OK==rc
120235+
#ifndef ANDROID /* fts3_tokenizer disabled for security reasons */
120235120236
&& SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer"))
120237+
#endif
120236120238
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1))
120237120239
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", 1))
120238120240
&& SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 1))

0 commit comments

Comments
 (0)