]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
f3: safer fixed buffer size for alternate F3_NS
authorEric Wong <e@80x24.org>
Wed, 26 Jul 2023 12:45:14 +0000 (12:45 +0000)
committerEric Wong <e@80x24.org>
Wed, 2 Aug 2023 20:29:24 +0000 (20:29 +0000)
This accounts for longer F3_NS values if we need them.

lib/PublicInbox/f3.h

index 3ac3f57552a880b4f4c2b0a56f655c37a2038d6b..4494e61b7ef14c70309d17374542e6f3f11cf00e 100644 (file)
@@ -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"))