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
d371d539
Commit
d371d539
authored
Mar 05, 2012
by
Ramil Kalimullin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge from mysql-5.1-security.
parents
6d393110
30d32207
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
mysql-test/r/gis.result
mysql-test/r/gis.result
+13
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+17
-0
sql/item_subselect.cc
sql/item_subselect.cc
+1
-0
sql/spatial.cc
sql/spatial.cc
+2
-1
No files found.
mysql-test/r/gis.result
View file @
d371d539
...
...
@@ -1077,6 +1077,19 @@ SPATIAL INDEX i1 (col1, col2)
ERROR HY000: Incorrect arguments to SPATIAL INDEX
DROP TABLE t0, t1, t2;
#
# BUG#12414917 - ISCLOSED() CRASHES ON 64-BIT BUILDS
#
SELECT ISCLOSED(CONVERT(CONCAT(' ', 0x2), BINARY(20)));
ISCLOSED(CONVERT(CONCAT(' ', 0x2), BINARY(20)))
NULL
#
# BUG#12537203 - CRASH WHEN SUBSELECTING GLOBAL VARIABLES IN
# GEOMETRY FUNCTION ARGUMENTS
#
SELECT GEOMETRYCOLLECTION((SELECT @@OLD));
ERROR 22007: Illegal non geometric '' value found during parsing
End of 5.1 tests
#
# Bug#11908153: CRASH AND/OR VALGRIND ERRORS IN FIELD_BLOB::GET_KEY_IMAGE
#
CREATE TABLE g1
...
...
mysql-test/t/gis.test
View file @
d371d539
...
...
@@ -820,6 +820,23 @@ CREATE TABLE t3 (
# cleanup
DROP
TABLE
t0
,
t1
,
t2
;
--
echo
#
--
echo
# BUG#12414917 - ISCLOSED() CRASHES ON 64-BIT BUILDS
--
echo
#
SELECT
ISCLOSED
(
CONVERT
(
CONCAT
(
' '
,
0x2
),
BINARY
(
20
)));
--
echo
#
--
echo
# BUG#12537203 - CRASH WHEN SUBSELECTING GLOBAL VARIABLES IN
--
echo
# GEOMETRY FUNCTION ARGUMENTS
--
echo
#
--
error
ER_ILLEGAL_VALUE_FOR_TYPE
SELECT
GEOMETRYCOLLECTION
((
SELECT
@@
OLD
));
--
echo
End
of
5.1
tests
--
echo
#
--
echo
# Bug#11908153: CRASH AND/OR VALGRIND ERRORS IN FIELD_BLOB::GET_KEY_IMAGE
--
echo
#
...
...
sql/item_subselect.cc
View file @
d371d539
...
...
@@ -182,6 +182,7 @@ bool Item_subselect::fix_fields(THD *thd_param, Item **ref)
(
*
ref
)
=
substitution
;
substitution
->
name
=
name
;
substitution
->
name_length
=
name_length
;
if
(
have_to_be_excluded
)
engine
->
exclude
();
substitution
=
0
;
...
...
sql/spatial.cc
View file @
d371d539
...
...
@@ -609,7 +609,8 @@ int Gis_line_string::is_closed(int *closed) const
return
0
;
}
data
+=
4
;
if
(
no_data
(
data
,
SIZEOF_STORED_DOUBLE
*
2
*
n_points
))
if
(
n_points
==
0
||
no_data
(
data
,
SIZEOF_STORED_DOUBLE
*
2
*
n_points
))
return
1
;
/* Get first point */
...
...
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