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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e82647cd
Commit
e82647cd
authored
Sep 28, 2005
by
dean@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for BUG#13582. Theoretically possible to try to overallocate RAM in some fulltext queries.
parent
324f4be3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
myisam/ft_nlq_search.c
myisam/ft_nlq_search.c
+2
-1
No files found.
myisam/ft_nlq_search.c
View file @
e82647cd
...
@@ -266,7 +266,8 @@ FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, byte *query,
...
@@ -266,7 +266,8 @@ FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, byte *query,
so if ndocs == 0, FT_INFO.doc[] must not be accessed.
so if ndocs == 0, FT_INFO.doc[] must not be accessed.
*/
*/
dlist
=
(
FT_INFO
*
)
my_malloc
(
sizeof
(
FT_INFO
)
+
dlist
=
(
FT_INFO
*
)
my_malloc
(
sizeof
(
FT_INFO
)
+
sizeof
(
FT_DOC
)
*
(
aio
.
dtree
.
elements_in_tree
-
1
),
sizeof
(
FT_DOC
)
*
(
int
)(
aio
.
dtree
.
elements_in_tree
-
1
),
MYF
(
0
));
MYF
(
0
));
if
(
!
dlist
)
if
(
!
dlist
)
goto
err
;
goto
err
;
...
...
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