From: Eric Wong Date: Wed, 26 Jul 2023 12:45:14 +0000 (+0000) Subject: f3: safer fixed buffer size for alternate F3_NS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bcb31c1a30e5d55235c935d547643bd48570780;p=thirdparty%2Fpublic-inbox.git f3: safer fixed buffer size for alternate F3_NS This accounts for longer F3_NS values if we need them. --- diff --git a/lib/PublicInbox/f3.h b/lib/PublicInbox/f3.h index 3ac3f5755..4494e61b7 100644 --- a/lib/PublicInbox/f3.h +++ b/lib/PublicInbox/f3.h @@ -1347,7 +1347,7 @@ f3_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name, size_t size) size_t rlen = sizeof(fxr); if (ino == FUSE_ROOT_ID) { /* show f3 internal vars */ - char x[80]; + char x[sizeof(F3_NS) + 75]; int n = INT_MAX; if (!strcmp(name, F3_NS".entry_timeout"))