From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 615571F547 for ; Wed, 26 Jul 2023 12:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1690375515; bh=6o5+wIx+O01huoK+rYpM0+rH8aL80938/l50ZI8+oKA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nhR6kvEv+p8RBwx96kOnt3cfk217pfma1znNZedpBE6qMJZ0L8qodbPIItAY2zA+N JgyAutsxzqrx7mKHVDpPBMMXP4NQ+ocvh+NHEVQ+nSHQxhdOOiaHme23B6Vlha6d6P 1kpVaz5rgfdth4OLotE3YVqagystW7qn17pJbNHw= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] f3: safer fixed buffer size for alternate F3_NS Date: Wed, 26 Jul 2023 12:45:14 +0000 Message-Id: <20230726124515.3639819-2-e@80x24.org> In-Reply-To: <20230726124515.3639819-1-e@80x24.org> References: <20230726124515.3639819-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This accounts for longer F3_NS values if we need them. --- lib/PublicInbox/f3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/f3.h b/lib/PublicInbox/f3.h index 3ac3f575..4494e61b 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"))