TSG-7756: QUIC.v13.1异常存在重启,解析client hello出错时,未对参数进行检查

This commit is contained in:
liuxueli
2021-09-14 11:59:31 +08:00
committed by 刘学利
parent fb3f2460ea
commit b5210028da
5 changed files with 23 additions and 13 deletions

View File

@@ -173,7 +173,7 @@ int parse_encrypt_client_hello(void *pstream, struct _quic_stream *quic_stream,
used_len+=skip_len;
extension_total_len=(int)get_value(payload, &used_len, 2); //Extension length
if(!check_length(payload_len-used_len, extension_total_len))
if(!check_length(payload_len-used_len, extension_total_len) && (extension_total_len!=payload_len-used_len))
{
return flags;
}