| OLD | NEW |
| 1 From ffc4e16279571911d59495335652905e06ac2b63 Mon Sep 17 00:00:00 2001 | 1 From 971ef3e0fc917c25d7c0037de0c7a6df80068368 Mon Sep 17 00:00:00 2001 |
| 2 From: Scott Hess <shess@chromium.org> | 2 From: Scott Hess <shess@chromium.org> |
| 3 Date: Mon, 22 Dec 2014 14:06:33 -0800 | 3 Date: Mon, 22 Dec 2014 14:06:33 -0800 |
| 4 Subject: [PATCH 17/23] [fts2] Disable fts2_tokenizer for security reasons. | 4 Subject: [PATCH 11/16] [fts2] Disable fts2_tokenizer for security reasons. |
| 5 | 5 |
| 6 This was a leftover bit from merging the Gears SQLite into Chromium's version. | 6 This was a leftover bit from merging the Gears SQLite into Chromium's version. |
| 7 | 7 |
| 8 Original commit URL, which also shifted directory structure: | 8 Original commit URL, which also shifted directory structure: |
| 9 http://src.chromium.org/viewvc/chrome?revision=7623&view=revision | 9 http://src.chromium.org/viewvc/chrome?revision=7623&view=revision |
| 10 --- | 10 --- |
| 11 third_party/sqlite/src/ext/fts2/fts2.c | 18 ++++++++++++++++++ | 11 third_party/sqlite/src/ext/fts2/fts2.c | 18 ++++++++++++++++++ |
| 12 1 file changed, 18 insertions(+) | 12 1 file changed, 18 insertions(+) |
| 13 | 13 |
| 14 diff --git a/third_party/sqlite/src/ext/fts2/fts2.c b/third_party/sqlite/src/ext
/fts2/fts2.c | 14 diff --git a/third_party/sqlite/src/ext/fts2/fts2.c b/third_party/sqlite/src/ext
/fts2/fts2.c |
| 15 index 3d9728a..4945cd9 100644 | 15 index dd75b4a..944f324 100644 |
| 16 --- a/third_party/sqlite/src/ext/fts2/fts2.c | 16 --- a/third_party/sqlite/src/ext/fts2/fts2.c |
| 17 +++ b/third_party/sqlite/src/ext/fts2/fts2.c | 17 +++ b/third_party/sqlite/src/ext/fts2/fts2.c |
| 18 @@ -37,6 +37,20 @@ | 18 @@ -37,6 +37,20 @@ |
| 19 ** This is an SQLite module implementing full-text search. | 19 ** This is an SQLite module implementing full-text search. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 +/* TODO(shess): To make it easier to spot changes without groveling | 22 +/* TODO(shess): To make it easier to spot changes without groveling |
| 23 +** through changelogs, I've defined GEARS_FTS2_CHANGES to call them | 23 +** through changelogs, I've defined GEARS_FTS2_CHANGES to call them |
| 24 +** out, and I will document them here. On imports, these changes | 24 +** out, and I will document them here. On imports, these changes |
| 25 +** should be reviewed to make sure they are still present, or are | 25 +** should be reviewed to make sure they are still present, or are |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 + /* fts2_tokenizer() disabled for security reasons. */ | 44 + /* fts2_tokenizer() disabled for security reasons. */ |
| 45 +#else | 45 +#else |
| 46 && SQLITE_OK==(rc = sqlite3Fts2InitHashTable(db, pHash, "fts2_tokenizer")) | 46 && SQLITE_OK==(rc = sqlite3Fts2InitHashTable(db, pHash, "fts2_tokenizer")) |
| 47 +#endif | 47 +#endif |
| 48 && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1)) | 48 && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1)) |
| 49 && SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", -1)) | 49 && SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", -1)) |
| 50 && SQLITE_OK==(rc = sqlite3_overload_function(db, "optimize", -1)) | 50 && SQLITE_OK==(rc = sqlite3_overload_function(db, "optimize", -1)) |
| 51 -- | 51 -- |
| 52 2.2.1 | 52 2.2.1 |
| 53 | 53 |
| OLD | NEW |