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
9129d1b7
Commit
9129d1b7
authored
Apr 30, 2009
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging
parents
e6afc716
7d1163e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
tests/mysql_client_test.c
tests/mysql_client_test.c
+0
-58
No files found.
tests/mysql_client_test.c
View file @
9129d1b7
...
...
@@ -16555,61 +16555,6 @@ static void test_change_user()
DBUG_VOID_RETURN
;
}
#ifdef HAVE_SPATIAL
/**
Bug#37956 memory leak and / or crash with geometry and prepared statements!
*/
static
void
test_bug37956
(
void
)
{
const
char
*
query
=
"select point(?,?)"
;
MYSQL_STMT
*
stmt
=
NULL
;
ulong
val
=
0
;
MYSQL_BIND
bind_param
[
2
];
unsigned
char
buff
[
2
]
=
{
134
,
211
};
DBUG_ENTER
(
"test_bug37956"
);
myheader
(
"test_bug37956"
);
stmt
=
mysql_simple_prepare
(
mysql
,
query
);
check_stmt
(
stmt
);
val
=
1
;
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_UPDATE_MAX_LENGTH
,
(
void
*
)
&
val
);
val
=
CURSOR_TYPE_READ_ONLY
;
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
val
);
val
=
0
;
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_PREFETCH_ROWS
,
(
void
*
)
&
val
);
memset
(
bind_param
,
0
,
sizeof
(
bind_param
));
bind_param
[
0
].
buffer_type
=
MYSQL_TYPE_TINY
;
bind_param
[
0
].
buffer
=
(
void
*
)
buff
;
bind_param
[
0
].
is_null
=
NULL
;
bind_param
[
0
].
error
=
NULL
;
bind_param
[
0
].
is_unsigned
=
1
;
bind_param
[
1
].
buffer_type
=
MYSQL_TYPE_TINY
;
bind_param
[
1
].
buffer
=
(
void
*
)(
buff
+
1
);
bind_param
[
1
].
is_null
=
NULL
;
bind_param
[
1
].
error
=
NULL
;
bind_param
[
1
].
is_unsigned
=
1
;
if
(
mysql_stmt_bind_param
(
stmt
,
bind_param
))
{
mysql_stmt_close
(
stmt
);
DIE_UNLESS
(
0
);
}
if
(
mysql_stmt_execute
(
stmt
))
{
mysql_stmt_close
(
stmt
);
DBUG_VOID_RETURN
;
}
/* Should never reach here: execution returns an error. */
mysql_stmt_close
(
stmt
);
DIE_UNLESS
(
0
);
DBUG_VOID_RETURN
;
}
#endif
/*
Bug#27592 (stack overrun when storing datetime value using prepared statements)
*/
...
...
@@ -18145,9 +18090,6 @@ static struct my_tests_st my_tests[]= {
{
"test_wl4166_2"
,
test_wl4166_2
},
{
"test_bug38486"
,
test_bug38486
},
{
"test_bug40365"
,
test_bug40365
},
#ifdef HAVE_SPATIAL
{
"test_bug37956"
,
test_bug37956
},
#endif
#ifdef HAVE_QUERY_CACHE
{
"test_bug36326"
,
test_bug36326
},
#endif
...
...
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