From 92d9ac8e7b16d52d7e60d72afcafe20eda23bbad Mon Sep 17 00:00:00 2001 From: FUTATSUKI Yasuhito Date: Thu, 19 Sep 2024 06:22:26 +0900 Subject: [PATCH] openarc: Avoid truncate 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. https://github.com/trusteddomainproject/OpenARC/pull/180 --- openarc/openarc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openarc/openarc.c b/openarc/openarc.c index 5880fe7..e005b85 100644 --- a/openarc/openarc.c +++ b/openarc/openarc.c @@ -3806,7 +3806,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),