[libdbd-sqlite3-perl] 04/43: two-arg fts3_tokenizer() is disabled by default for security concerns as of SQLite 3.11.0, unless DBD::SQLite is compiled with -DSQLITE_ENABLE_FTS3_TOKENIZER

Salvatore Bonaccorso carnil at debian.org
Tue Nov 15 15:27:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch master
in repository libdbd-sqlite3-perl.

commit abed684c431beab32d20da69e344bf3075102a1e
Author: Kenichi Ishigaki <ishigaki at cpan.org>
Date:   Tue Feb 16 11:55:27 2016 +0900

    two-arg fts3_tokenizer() is disabled by default for security concerns as of SQLite 3.11.0, unless DBD::SQLite is compiled with -DSQLITE_ENABLE_FTS3_TOKENIZER
---
 t/43_fts3.t | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t/43_fts3.t b/t/43_fts3.t
index 7af6c2e..64910ee 100644
--- a/t/43_fts3.t
+++ b/t/43_fts3.t
@@ -33,6 +33,9 @@ BEGIN {
 	if (!grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) {
 		plan skip_all => 'FTS3 is disabled for this DBD::SQLite';
 	}
+	if ($DBD::SQLite::sqlite_version_number >= 3011000 and !grep /ENABLE_FTS3_TOKENIZER/, DBD::SQLite::compile_options()) {
+		plan skip_all => 'FTS3 tokenizer is disabled for this DBD::SQLite';
+	}
 }
 use Test::NoWarnings;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-sqlite3-perl.git



More information about the Pkg-perl-cvs-commits mailing list