From 42d9acdcc31682b4bf425f98c938d428a51a6cfd Mon Sep 17 00:00:00 2001 From: FUTATSUKI Yasuhito <futatuki@yf.bsdclub.org> 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. --- openarc/openarc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openarc/openarc.c b/openarc/openarc.c index 7e191dc1..8f60bd07 100644 --- a/openarc/openarc.c +++ b/openarc/openarc.c @@ -3788,7 +3788,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),