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
054d7c9a
Commit
054d7c9a
authored
Oct 04, 2000
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_table.cc key length limit check disabled for FULLTEXT
ft_parser.c Nasty buffer overflow fixed
parent
67dd1d11
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
myisam/ft_parser.c
myisam/ft_parser.c
+4
-3
sql/sql_table.cc
sql/sql_table.cc
+14
-14
No files found.
myisam/ft_parser.c
View file @
054d7c9a
...
@@ -141,6 +141,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen)
...
@@ -141,6 +141,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen)
for
(
w
.
pos
=
doc
;
doc
<
end
;
doc
++
)
for
(
w
.
pos
=
doc
;
doc
<
end
;
doc
++
)
if
(
!
word_char
(
*
doc
))
break
;
if
(
!
word_char
(
*
doc
))
break
;
if
((
w
.
len
=
(
uint
)
(
doc
-
w
.
pos
))
<
MIN_WORD_LEN
)
continue
;
if
((
w
.
len
=
(
uint
)
(
doc
-
w
.
pos
))
<
MIN_WORD_LEN
)
continue
;
if
(
w
.
len
>=
HA_FT_MAXLEN
)
continue
;
if
(
!
tree_insert
(
wtree
,
&
w
,
0
))
if
(
!
tree_insert
(
wtree
,
&
w
,
0
))
{
{
delete_tree
(
wtree
);
delete_tree
(
wtree
);
...
...
sql/sql_table.cc
View file @
054d7c9a
...
@@ -469,7 +469,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -469,7 +469,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
}
}
}
}
key_info
->
key_length
=
(
uint16
)
key_length
;
key_info
->
key_length
=
(
uint16
)
key_length
;
if
(
key_length
>
file
->
max_key_length
())
if
(
key_length
>
file
->
max_key_length
()
&&
key
->
type
!=
Key
::
FULLTEXT
)
{
{
my_error
(
ER_TOO_LONG_KEY
,
MYF
(
0
),
file
->
max_key_length
());
my_error
(
ER_TOO_LONG_KEY
,
MYF
(
0
),
file
->
max_key_length
());
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
...
...
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