Skip to content

Commit

Permalink
Merge pull request trusteddomainproject#180 from futatuki/avoid-trunc…
Browse files Browse the repository at this point in the history
…ate-arc-set-headers

As ARC set header may grow up to ARC_MAXHEADER, the limit size per header size we determined to handle, buffer size to store should be larger than it.

With this commit, fix a size of the buffer to store header field body.

This would fix the problem described in PR trusteddomainproject#161

trusteddomainproject#180
  • Loading branch information
futatuki committed Sep 18, 2024
2 parents 99b6e7d + 42d9acd commit e2b06e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3811,7 +3811,7 @@ mlfi_eom(SMFICTX *ctx)
size_t len;
u_char *hfvdest;
u_char hfname[BUFRSZ + 1];
u_char hfvalue[BUFRSZ + 1];
u_char hfvalue[ARC_MAXHEADER + 1];

memset(hfname, '\0', sizeof hfname);
strlcpy(hfname, arc_hdr_name(sealhdr, &len),
Expand Down

0 comments on commit e2b06e3

Please sign in to comment.