Skip to content

Commit 80d4004

Browse files
committed
Fixed vulnerability TALOS-2023-1746 reported by Cisco TALOS.
1 parent cd3fb56 commit 80d4004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Source/http-s_req.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ static void HTTPsReq_HdrParse (HTTPs_INSTANCE *p_instance,
17411741
p_field_end,
17421742
&len);
17431743

1744-
len = DEF_MIN(len, p_cfg->HostNameLenMax);
1744+
len = DEF_MIN(len, p_cfg->HostNameLenMax - 1);
17451745

17461746
/* Copy host name val in Conn struct. */
17471747
(void)Str_Copy_N(p_conn->HostPtr, p_val, len);

0 commit comments

Comments
 (0)