From nobody Sat Jul 20 16:15:11 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WRBTW62g0z5Rw4T; Sat, 20 Jul 2024 16:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WRBTW5Dx2z4V9n; Sat, 20 Jul 2024 16:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721492111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o0qfXZjP3ZdaBNWWeYJLfMA67EVKVT/fxOjpl2UspFY=; b=ZYPAaSqhbuKOryDl4cBTFUDjdbVFyQS4Maj9spAYU8uiCDtR+MIFMge99rxTvKqgCMLcRv 0n4xE3BRCI+k3jokX96Ab5u49LR8pFM2xulUYgzjSYbcM+q3qEJ7RuhlY254HoetuqRkwH 3FG2LOqBYP7BQlyoq0gqRdgXAS4TOf6ilCaCPYAC2Xc1IyWdfOdVtRhLC4sB2Vd4eZK2Ao dpnXMSfZPn3NnS2TXtkkDzBPMSZOrHNCZZNTVEC0DHudCBtuB8qWbIHa/mQDEqBS1Fc3+T 1F7TPKhKqgrpC0msOWOW+kzm/Mf4IpBph6B1J0oPeuv9ARSbmohWBoxIl/jSNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721492111; a=rsa-sha256; cv=none; b=x8bZMkiK9hga5rX4kejuBUo5mShT2RmDBRVh7PwCWYoufG2VOdpuOQqac0EO674LermcwR Ogf4HUWLOAIHXFWzfDW1CR9BGIWJCCnYnguZ0Lu7ru0ICNK2HKH4jfj8bJEXUlg0IoxK/0 KskVVrhnt/wWxBUPxj6cqyPP6H5PgKFp5zOeUnEa3Nb39jB6YTpc5cYQQOokZuvCF9HaLL XfBOZBsXV4icj93e2vWnDq99xTsdNXoFcHzvxbSbbP+iJDYpp9RsHPlbH+EuJr5ezp70wA XOErQwbmpwJU35BcjEeTbrtnR0DydiQGHOMmpfwip+kbzKRKzJnxYT/ROFdJMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721492111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o0qfXZjP3ZdaBNWWeYJLfMA67EVKVT/fxOjpl2UspFY=; b=j3UzTIdXGI82nAT6kXaX1H8ga86GIZIEkr1hU561T84Yj4Ddb8RmZhrgw1UCsX1zOSbTN1 HQcqgcMgNO+CFi7PyVLR9UIJePWLOpHnSKdgYLZHNwwKiDnLpzCaaBfqWK+Y8DFKcB7wH5 4AnAiJizPweTf2pb/yeaDYLVW9xJT+fhcmrqRioup+QSnbxNGQb0qgOBM7Y33nsiolz2iL iAblKRfNpl45AGFC0+DiXM3/W+m7dqKejGqDPHhuqqSUY9fyAHRB8kJGyxbrnzUU6NzTch /HMEkgzh37z7FRb3i20wIcFWI2K1ukl1iaHPuJunJ/Rq9BJLgwrA+gLDZP4V4g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WRBTW4qMmzNZY; Sat, 20 Jul 2024 16:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46KGFB2n080647; Sat, 20 Jul 2024 16:15:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46KGFBtJ080644; Sat, 20 Jul 2024 16:15:11 GMT (envelope-from git) Date: Sat, 20 Jul 2024 16:15:11 GMT Message-Id: <202407201615.46KGFBtJ080644@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 90818083d795 - main - ipf: correct size limit in snprintf List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90818083d795a9c06feca54f32fa6d35c200e1a2 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=90818083d795a9c06feca54f32fa6d35c200e1a2 commit 90818083d795a9c06feca54f32fa6d35c200e1a2 Author: Ryan Libby AuthorDate: 2024-07-20 16:14:57 +0000 Commit: Ryan Libby CommitDate: 2024-07-20 16:14:57 +0000 ipf: correct size limit in snprintf Reported by: GCC -Wsizeof-pointer-memaccess Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D45899 --- sbin/ipf/common/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ipf/common/lexer.c b/sbin/ipf/common/lexer.c index d1980765ef93..56ac3586af6e 100644 --- a/sbin/ipf/common/lexer.c +++ b/sbin/ipf/common/lexer.c @@ -449,7 +449,7 @@ buildipv6: oc = c; if (prior == YY_NUMBER && c == ':') { - snprintf(s, sizeof(s), "%d", priornum); + snprintf(s, sizeof(ipv6buf), "%d", priornum); s += strlen(s); }