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
d2a5d971
Commit
d2a5d971
authored
Apr 10, 2015
by
Sreeharsha Ramanavarapu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug# 19573096: LOADING CORRUPTED GEOMETRY DATA INTO A
MYISAM TABLE CAUSES THE SERVER TO CRASH Backport to mysql-5.1
parent
e65f3f6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
storage/myisam/rt_split.c
storage/myisam/rt_split.c
+8
-1
No files found.
storage/myisam/rt_split.c
View file @
d2a5d971
/*
Copyright (c) 2002, 201
0
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2002, 201
5
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -70,6 +70,10 @@ static double mbr_join_square(const double *a, const double *b, int n_dim)
b
+=
2
;
}
while
(
a
!=
end
);
/* Check for infinity or NaN */
if
(
my_isinf
(
square
)
||
isnan
(
square
))
square
=
DBL_MAX
;
return
square
;
}
...
...
@@ -104,6 +108,9 @@ static void pick_seeds(SplitStruct *node, int n_entries,
double
max_d
=
-
DBL_MAX
;
double
d
;
*
seed_a
=
node
;
*
seed_b
=
node
+
1
;
for
(
cur1
=
node
;
cur1
<
lim1
;
++
cur1
)
{
for
(
cur2
=
cur1
+
1
;
cur2
<
lim2
;
++
cur2
)
...
...
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