Skip to content

Commit

Permalink
Off-by-one error in tls-supported-groups parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Nov 8, 2024
1 parent c1acc4c commit 0a7201e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generic/svcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,10 @@ static int32_t parse_tls_supported_groups(
if (memcmp(g, &group, 2) == 0)
SEMANTIC_ERROR(parser, "Duplicate group in tls-supported-groups in %s", NAME(type));
}
if (*t++ != ',')
if (*t != ',')
break;
else
t++;
}

if (t != te || rdata->octets > rdata->limit)
Expand Down

0 comments on commit 0a7201e

Please sign in to comment.