projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d4253
)
Validate ClientHello extension field length
author
Alessandro Ghedini
<alessandro@ghedini.me>
Fri, 2 Oct 2015 12:38:30 +0000
(14:38 +0200)
committer
Matt Caswell
<matt@openssl.org>
Mon, 5 Oct 2015 18:48:28 +0000
(19:48 +0100)
RT#4069
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/t1_lib.c
patch
|
blob
|
history
diff --git
a/ssl/t1_lib.c
b/ssl/t1_lib.c
index d70b93feadf0bd8198db02a015aa9bd9c6ebf9e8..ef6c6fa270b1490ce24c3615c81e34660a52dcdc 100644
(file)
--- a/
ssl/t1_lib.c
+++ b/
ssl/t1_lib.c
@@
-1024,7
+1024,7
@@
int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d,
n2s(data, len);
- if (data
> (d + n - len)
)
+ if (data
+ len != d + n
)
goto err;
while (data <= (d + n - 4)) {