Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
4224bc0a
Commit
4224bc0a
authored
Apr 08, 2014
by
Paul Bakker
Browse files
Prevent potential NULL pointer dereference in ssl_read_record()
parent
563ad026
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ChangeLog
ChangeLog
+2
-0
library/ssl_tls.c
library/ssl_tls.c
+2
-1
No files found.
ChangeLog
View file @
4224bc0a
...
...
@@ -12,6 +12,8 @@ Security
This affects certificates in the user-supplied chain except the top
certificate. If the user-supplied chain contains only one certificates,
it is not affected (ie, its notAfter date is properly checked).
* Prevent potential NULL pointer dereference in ssl_read_record() (found by
TrustInSoft)
Bugfix
* The length of various ClientKeyExchange messages was not properly checked.
...
...
library/ssl_tls.c
View file @
4224bc0a
...
...
@@ -2087,7 +2087,8 @@ int ssl_read_record( ssl_context *ssl )
return
(
POLARSSL_ERR_SSL_INVALID_RECORD
);
}
ssl
->
handshake
->
update_checksum
(
ssl
,
ssl
->
in_msg
,
ssl
->
in_hslen
);
if
(
ssl
->
state
!=
SSL_HANDSHAKE_OVER
)
ssl
->
handshake
->
update_checksum
(
ssl
,
ssl
->
in_msg
,
ssl
->
in_hslen
);
return
(
0
);
}
...
...
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