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
b77d3b0c
Commit
b77d3b0c
authored
Dec 13, 2012
by
Harin Vadodaria
Browse files
Options
Browse Files
Download
Plain Diff
Bug#15965288: BUFFER OVERFLOW IN YASSL FUNCTION
DOPROCESSREPLY() Description: Merge from 5.1 to 5.5
parents
fc2ad0af
69689fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
extra/yassl/src/handshake.cpp
extra/yassl/src/handshake.cpp
+7
-1
No files found.
extra/yassl/src/handshake.cpp
View file @
b77d3b0c
...
...
@@ -767,8 +767,14 @@ int DoProcessReply(SSL& ssl)
while
(
buffer
.
get_current
()
<
hdr
.
length_
+
RECORD_HEADER
+
offset
)
{
// each message in record, can be more than 1 if not encrypted
if
(
ssl
.
getSecurity
().
get_parms
().
pending_
==
false
)
// cipher on
if
(
ssl
.
getSecurity
().
get_parms
().
pending_
==
false
)
{
// cipher on
// sanity check for malicious/corrupted/illegal input
if
(
buffer
.
get_remaining
()
<
hdr
.
length_
)
{
ssl
.
SetError
(
bad_input
);
return
0
;
}
decrypt_message
(
ssl
,
buffer
,
hdr
.
length_
);
}
mySTL
::
auto_ptr
<
Message
>
msg
(
mf
.
CreateObject
(
hdr
.
type_
));
if
(
!
msg
.
get
())
{
...
...
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