提交 52a48f9e 编写于 作者: A Alessandro Ghedini 提交者: Matt Caswell

Validate ClientHello extension field length

RT#4069
Reviewed-by: NEmilia Käsper <emilia@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 67202973
......@@ -1927,6 +1927,9 @@ static int ssl_scan_clienthello_tlsext(SSL *s, PACKET *pkt, int *al)
if (!PACKET_get_net_2(pkt, &len))
goto err;
if (PACKET_remaining(pkt) != len)
goto err;
while (PACKET_get_net_2(pkt, &type) && PACKET_get_net_2(pkt, &size)) {
PACKET subpkt;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册