From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 17DF91FAF3 for ; Tue, 15 Nov 2022 19:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1668540822; bh=Ds3OwC9/Auf0+X4wzR6SIZoZwvOuunDZHdXvBBCiP6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wc2TIWD2LcPVs76mEqpLTz5E3pRPJch3weYE/hUq2LcQ87STGLx9wVuX8qYAPxdXF QhRrBTTKmr2eJua8QFGdnXNY1JuvGRgQlMHkPzk2CzpuevS1l6w9s/4HeO9GKADoXT eeWQTPzQ7nb0YDxUqtfVu+HHNQ5EI9GH5BBZ+5W4= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH 4/6] document of kbuf allocation size Date: Tue, 15 Nov 2022 19:33:39 +0000 Message-Id: <20221115193341.3948245-5-e@80x24.org> In-Reply-To: <20221115193341.3948245-1-e@80x24.org> References: <20221115193341.3948245-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This may be increased in the future if we add C addr2line support. --- Mwrap.xs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mwrap.xs b/Mwrap.xs index f441ca8..8939b88 100644 --- a/Mwrap.xs +++ b/Mwrap.xs @@ -208,8 +208,9 @@ struct alloc_hdr { size_t size; }; +/* $PATHNAME:$LINENO */ static MWRAP_TSD char kbuf[ - PATH_MAX + INT2STR_MAX + sizeof(struct alloc_hdr) + 2 + PATH_MAX + sizeof(":") + INT2STR_MAX + sizeof(struct alloc_hdr) ]; static struct alloc_hdr *ptr2hdr(void *p)