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
1cb6ad3c
Commit
1cb6ad3c
authored
Jan 11, 2008
by
serg/mysqldev@janus.mylan/production.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#33814 - yassl problems
parent
2fd45aae
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
74 deletions
+16
-74
extra/yassl/src/handshake.cpp
extra/yassl/src/handshake.cpp
+5
-0
extra/yassl/src/template_instnt.cpp
extra/yassl/src/template_instnt.cpp
+1
-0
extra/yassl/src/yassl_imp.cpp
extra/yassl/src/yassl_imp.cpp
+10
-1
mysql-test/r/bdb_notembedded.result
mysql-test/r/bdb_notembedded.result
+0
-35
mysql-test/t/bdb_notembedded.test
mysql-test/t/bdb_notembedded.test
+0
-38
No files found.
extra/yassl/src/handshake.cpp
View file @
1cb6ad3c
...
...
@@ -527,6 +527,11 @@ void ProcessOldClientHello(input_buffer& input, SSL& ssl)
input
.
read
(
len
,
sizeof
(
len
));
uint16
randomLen
;
ato16
(
len
,
randomLen
);
if
(
ch
.
suite_len_
>
MAX_SUITE_SZ
||
sessionLen
>
ID_LEN
||
randomLen
>
RAN_LEN
)
{
ssl
.
SetError
(
bad_input
);
return
;
}
int
j
=
0
;
for
(
uint16
i
=
0
;
i
<
ch
.
suite_len_
;
i
+=
3
)
{
...
...
extra/yassl/src/template_instnt.cpp
View file @
1cb6ad3c
...
...
@@ -101,6 +101,7 @@ template void ysArrayDelete<unsigned char>(unsigned char*);
template
void
ysArrayDelete
<
char
>(
char
*
);
template
int
min
<
int
>(
int
,
int
);
template
uint16
min
<
uint16
>(
uint16
,
uint16
);
template
unsigned
int
min
<
unsigned
int
>(
unsigned
int
,
unsigned
int
);
template
unsigned
long
min
<
unsigned
long
>(
unsigned
long
,
unsigned
long
);
}
...
...
extra/yassl/src/yassl_imp.cpp
View file @
1cb6ad3c
...
...
@@ -621,6 +621,10 @@ void HandShakeHeader::Process(input_buffer& input, SSL& ssl)
}
uint
len
=
c24to32
(
length_
);
if
(
len
>
input
.
get_remaining
())
{
ssl
.
SetError
(
bad_input
);
return
;
}
hashHandShake
(
ssl
,
input
,
len
);
hs
->
set_length
(
len
);
...
...
@@ -1391,10 +1395,15 @@ input_buffer& operator>>(input_buffer& input, ClientHello& hello)
// Suites
byte
tmp
[
2
];
uint16
len
;
tmp
[
0
]
=
input
[
AUTO
];
tmp
[
1
]
=
input
[
AUTO
];
ato16
(
tmp
,
hello
.
suite_len_
);
ato16
(
tmp
,
len
);
hello
.
suite_len_
=
min
(
len
,
static_cast
<
uint16
>
(
MAX_SUITE_SZ
));
input
.
read
(
hello
.
cipher_suites_
,
hello
.
suite_len_
);
if
(
len
>
hello
.
suite_len_
)
// ignore extra suites
input
.
set_current
(
input
.
get_current
()
+
len
-
hello
.
suite_len_
);
// Compression
hello
.
comp_len_
=
input
[
AUTO
];
...
...
mysql-test/r/bdb_notembedded.result
deleted
100644 → 0
View file @
2fd45aae
set autocommit=1;
reset master;
create table bug16206 (a int);
insert into bug16206 values(1);
start transaction;
insert into bug16206 values(2);
commit;
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
f n Query 1 n use `test`; create table bug16206 (a int)
f n Query 1 n use `test`; insert into bug16206 values(1)
f n Query 1 n use `test`; insert into bug16206 values(2)
drop table bug16206;
reset master;
create table bug16206 (a int) engine= bdb;
insert into bug16206 values(0);
insert into bug16206 values(1);
start transaction;
insert into bug16206 values(2);
commit;
insert into bug16206 values(3);
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
f n Query 1 n use `test`; create table bug16206 (a int) engine= bdb
f n Query 1 n use `test`; insert into bug16206 values(0)
f n Query 1 n use `test`; insert into bug16206 values(1)
f n Query 1 n use `test`; BEGIN
f n Query 1 n use `test`; insert into bug16206 values(2)
f n Query 1 n use `test`; COMMIT
f n Query 1 n use `test`; insert into bug16206 values(3)
drop table bug16206;
set autocommit=0;
End of 5.0 tests
mysql-test/t/bdb_notembedded.test
deleted
100644 → 0
View file @
2fd45aae
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_bdb
.
inc
#
# Bug #16206: Superfluous COMMIT event in binlog when updating BDB in autocommit mode
#
set
autocommit
=
1
;
let
$VERSION
=
`select version()`
;
reset
master
;
create
table
bug16206
(
a
int
);
insert
into
bug16206
values
(
1
);
start
transaction
;
insert
into
bug16206
values
(
2
);
commit
;
--
replace_result
$VERSION
VERSION
--
replace_column
1
f
2
n
5
n
show
binlog
events
;
drop
table
bug16206
;
reset
master
;
create
table
bug16206
(
a
int
)
engine
=
bdb
;
insert
into
bug16206
values
(
0
);
insert
into
bug16206
values
(
1
);
start
transaction
;
insert
into
bug16206
values
(
2
);
commit
;
insert
into
bug16206
values
(
3
);
--
replace_result
$VERSION
VERSION
--
replace_column
1
f
2
n
5
n
show
binlog
events
;
drop
table
bug16206
;
set
autocommit
=
0
;
--
echo
End
of
5.0
tests
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