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
aa357917
Commit
aa357917
authored
Jan 28, 2013
by
Nuno Carvalho
Browse files
Options
Browse Files
Download
Plain Diff
BUG#16200555: EMPTY NAME FOR USER VARIABLE IS ALLOWED AND BREAKS STATEMENT BINARY LOGGING
Merge from mysql-5.1 into mysql-5.5.
parents
ed1c446c
e174bf73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sql/log_event.cc
sql/log_event.cc
+3
-4
No files found.
sql/log_event.cc
View file @
aa357917
/*
/*
Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
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
it under the terms of the GNU General Public License as published by
...
@@ -5857,10 +5857,9 @@ User_var_log_event(const char* buf, uint event_len,
...
@@ -5857,10 +5857,9 @@ User_var_log_event(const char* buf, uint event_len,
/*
/*
We don't know yet is_null value, so we must assume that name_len
We don't know yet is_null value, so we must assume that name_len
may have the bigger value possible, is_null= True and there is no
may have the bigger value possible, is_null= True and there is no
payload for val.
payload for val
, or even that name_len is 0
.
*/
*/
if
(
0
==
name_len
||
if
(
!
valid_buffer_range
<
uint
>
(
name_len
,
buf_start
,
name
,
!
valid_buffer_range
<
uint
>
(
name_len
,
buf_start
,
name
,
event_len
-
UV_VAL_IS_NULL
))
event_len
-
UV_VAL_IS_NULL
))
{
{
error
=
true
;
error
=
true
;
...
...
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