Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5e5feb84
Commit
5e5feb84
authored
Jan 28, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-11241 Certain combining marks cause MariaDB to crash when doing Full-Text searches
fix it for Aria too
parent
a1f630cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
mysql-test/suite/maria/fulltext2.result
mysql-test/suite/maria/fulltext2.result
+7
-0
mysql-test/suite/maria/fulltext2.test
mysql-test/suite/maria/fulltext2.test
+9
-0
storage/maria/ma_ft_boolean_search.c
storage/maria/ma_ft_boolean_search.c
+1
-5
No files found.
mysql-test/suite/maria/fulltext2.result
View file @
5e5feb84
...
@@ -84,3 +84,10 @@ select count(*) from t1 where match a against ('aaayyy' in boolean mode);
...
@@ -84,3 +84,10 @@ select count(*) from t1 where match a against ('aaayyy' in boolean mode);
count(*)
count(*)
0
0
drop table t1;
drop table t1;
set names utf8mb4;
create table t1 (a int, b text, fulltext (b)) charset=utf8mb4 collate=utf8mb4_unicode_ci engine=aria;
insert t1 values (1000, 'C͓̙̯͔̩ͅͅi̩̘̜̲a̯̲̬̳̜̖̤o͕͓̜͓̺̖̗,̠̬͚ ̺T͇̲h͈̱e ̬̜D̖o̦̖͔̗͖̩̘c̣̼t̝͉̫̮̗o͉̫̭r̙͎̗.͓̪̥');
select a from t1 where match(b) against ('ciao' in boolean mode);
a
1000
drop table t1;
mysql-test/suite/maria/fulltext2.test
View file @
5e5feb84
...
@@ -75,3 +75,12 @@ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
...
@@ -75,3 +75,12 @@ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
select
count
(
*
)
from
t1
where
match
a
against
(
'aaayyy'
in
boolean
mode
);
select
count
(
*
)
from
t1
where
match
a
against
(
'aaayyy'
in
boolean
mode
);
drop
table
t1
;
drop
table
t1
;
#
# MDEV-11241 Certain combining marks cause MariaDB to crash when doing Full-Text searches
#
set
names
utf8mb4
;
create
table
t1
(
a
int
,
b
text
,
fulltext
(
b
))
charset
=
utf8mb4
collate
=
utf8mb4_unicode_ci
engine
=
aria
;
insert
t1
values
(
1000
,
'C͓̙̯͔̩ͅͅi̩̘̜̲a̯̲̬̳̜̖̤o͕͓̜͓̺̖̗,̠̬͚ ̺T͇̲h͈̱e ̬̜D̖o̦̖͔̗͖̩̘c̣̼t̝͉̫̮̗o͉̫̭r̙͎̗.͓̪̥'
);
select
a
from
t1
where
match
(
b
)
against
(
'ciao'
in
boolean
mode
);
drop
table
t1
;
storage/maria/ma_ft_boolean_search.c
View file @
5e5feb84
...
@@ -195,11 +195,7 @@ static int ftb_query_add_word(MYSQL_FTPARSER_PARAM *param,
...
@@ -195,11 +195,7 @@ static int ftb_query_add_word(MYSQL_FTPARSER_PARAM *param,
switch
(
info
->
type
)
{
switch
(
info
->
type
)
{
case
FT_TOKEN_WORD
:
case
FT_TOKEN_WORD
:
ftbw
=
(
FTB_WORD
*
)
alloc_root
(
&
ftb_param
->
ftb
->
mem_root
,
ftbw
=
(
FTB_WORD
*
)
alloc_root
(
&
ftb_param
->
ftb
->
mem_root
,
sizeof
(
FTB_WORD
)
+
sizeof
(
FTB_WORD
)
+
HA_MAX_KEY_BUFF
);
(
info
->
trunc
?
MARIA_MAX_KEY_BUFF
:
word_len
*
ftb_param
->
ftb
->
charset
->
mbmaxlen
+
HA_FT_WLEN
+
ftb_param
->
ftb
->
info
->
s
->
rec_reflength
));
ftbw
->
len
=
word_len
+
1
;
ftbw
->
len
=
word_len
+
1
;
ftbw
->
flags
=
0
;
ftbw
->
flags
=
0
;
ftbw
->
off
=
0
;
ftbw
->
off
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment