Commit 87718094 authored by dean@mysql.com's avatar dean@mysql.com

fulltext.test, fulltext.result:

  Test case for bug#8522, to test for out of bounds memory access in ft_nlq_find_relevance().
parent c962d060
...@@ -315,3 +315,9 @@ select count(*) from t1; ...@@ -315,3 +315,9 @@ select count(*) from t1;
count(*) count(*)
1 1
drop table t1; drop table t1;
CREATE TABLE t1 ( a TEXT, FULLTEXT (a) );
INSERT INTO t1 VALUES ('testing ft_nlq_find_relevance');
SELECT MATCH(a) AGAINST ('nosuchword') FROM t1;
MATCH(a) AGAINST ('nosuchword')
0
DROP TABLE t1;
...@@ -252,3 +252,11 @@ REPAIR TABLE t1; ...@@ -252,3 +252,11 @@ REPAIR TABLE t1;
select count(*) from t1; select count(*) from t1;
drop table t1; drop table t1;
#
# testing out of bounds memory access in ft_nlq_find_relevance()
# (bug#8522); visible in valgrind.
#
CREATE TABLE t1 ( a TEXT, FULLTEXT (a) );
INSERT INTO t1 VALUES ('testing ft_nlq_find_relevance');
SELECT MATCH(a) AGAINST ('nosuchword') FROM t1;
DROP TABLE t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment