Validate ClientHello extension field length
RT#4069 Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
67d4253174
commit
e4840c88c5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user