From nobody Wed May 28 11:26:33 2025 X-Original-To: dev-commits-ports-main@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 4b6nJV0w1Jz5xNFt; Wed, 28 May 2025 11:26:34 +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 4b6nJT6QdCz3GMJ; Wed, 28 May 2025 11:26:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748431593; 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=n94Yf4ndxrhWjzn7aXabSrhsF8EfROrFG1BTmvKO7YQ=; b=frkTXur/G9EDuYzmvN3EPPnFthM3xCpMgXzsERUsqEkAoH+LgxT+KDkab04E+osWU8aiKP Hb/K5XPJQRBAkJgl+fYARvkZ0ssIIyGaRbc0ZeCr5JkZKhHPJDr0+CPpSrermCZAPYXfph jLd6c1W4HeMFopntrRqSM4HX45Ahmwwx+1K+wx1Xb6rBOiLmt1CflDEoyls6O7LGUZS+R7 Tyx0qqMD5E51rQWLotju9VMTOeQm2jSCLbw8Y0fSLuAXb7Zrigk3L6D/mhiewMf1PPgMbu YOaoct/WlCD0k3MLZKtX2YBNcKS1uawhHFPuHiLvXZ0MSIpUl/xJsJXUF74SkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748431593; a=rsa-sha256; cv=none; b=a8Vlc/N6uvcGgohlM+tOgALfdduaDPE/M3TTRmIyM6pkGG36eT19YktoqCH+c5JPGIX9N1 2PXmMych5Z+MKiDuv6C5kCQoMHHTJD9Vd9GaDuTR9EmTTnGnde7tdOcuGIGxJkrZTcklvT P2BfAXN4wFLYhQM7RIrS3iYDpwcEt55RM5uR2t/UT8ZVq29+WyXil5xt6X3wgviPQ/S1UB L++RnQgDfVohtaGO+a+Dx8YWcYnOdMCacxJD3bdIrZ9ojuGKHqizPzB67P3vUh4izbhf5N KqzzJJtOXVUsIMxmeip7WEg9iSD7ZBIDVSuiMn/C/Vnw2TVgx/6yblyFZWHbFg== 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=1748431593; 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=n94Yf4ndxrhWjzn7aXabSrhsF8EfROrFG1BTmvKO7YQ=; b=tVnfMBd+xn1d0hCWWgArY2CQI92p0l4u6cB/IZuNrDN0A3FDAT2DQ9Ymt7M6jMEekaOr8O eXv6iW/Rtpz8vOh+cA9tlhlwJhMYft54ar+WgvgxvE+LAgHyvw42yYe0emSXJ+yi4/qyi4 aQ5dv6D1eiP6NgylA2HtEjEC06tf8RHwiuNYbcpPlFXr51YodQXoFRYuY0LqbdkMiV7ymg QHaJ+/llInyh9A/4sGsdvyzBGDpt8VKMNz7kRTnIVWqMbglv1MO9U3R2UPws9J+cBqfnxk ltWdvNFrWBsTzP0orAzUq8qY1Dfeq7HiYF3FqTgjPbtvF7WGqWxd8i4cuH92YA== 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 4b6nJT5HsQzcSf; Wed, 28 May 2025 11:26:33 +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 54SBQXaL075303; Wed, 28 May 2025 11:26:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54SBQXQu075300; Wed, 28 May 2025 11:26:33 GMT (envelope-from git) Date: Wed, 28 May 2025 11:26:33 GMT Message-Id: <202505281126.54SBQXQu075300@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Palle Girgensohn Subject: git: 72c51c9bb843 - main - security/vuls: Fix build problem on i386 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: girgen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72c51c9bb84393c3538b58560fc0a3746bc01b0d Auto-Submitted: auto-generated The branch main has been updated by girgen: URL: https://cgit.FreeBSD.org/ports/commit/?id=72c51c9bb84393c3538b58560fc0a3746bc01b0d commit 72c51c9bb84393c3538b58560fc0a3746bc01b0d Author: Palle Girgensohn AuthorDate: 2025-05-28 11:23:42 +0000 Commit: Palle Girgensohn CommitDate: 2025-05-28 11:26:26 +0000 security/vuls: Fix build problem on i386 Fix fetched from upstreams module: https://github.com/go-gorm/gorm/commit/8c4e8e2d2a63ef019048bd988a2016948605920b The change does not modify 64-bit built binaries, so no point in bumping the portrevision. --- ..._gorm.io_gorm_internal_stmt_store_stmt_store.go | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/security/vuls/files/patch-vendor_gorm.io_gorm_internal_stmt_store_stmt_store.go b/security/vuls/files/patch-vendor_gorm.io_gorm_internal_stmt_store_stmt_store.go new file mode 100644 index 000000000000..a249bd5099ae --- /dev/null +++ b/security/vuls/files/patch-vendor_gorm.io_gorm_internal_stmt_store_stmt_store.go @@ -0,0 +1,29 @@ +commit 8c4e8e2d2a63ef019048bd988a2016948605920b +Author: iTanken <23544702+iTanken@users.noreply.github.com> +Date: Sun Apr 27 14:05:16 2025 +0800 + + fix: int type variable defaultMaxSize overflows in 32-bit environment (#7439) + + Refs: #7435 + +diff --git a/internal/stmt_store/stmt_store.go b/internal/stmt_store/stmt_store.go +index 7068419..a82b2cf 100644 +--- vendor/gorm.io/gorm/internal/stmt_store/stmt_store.go ++++ vendor/gorm.io/gorm/internal/stmt_store/stmt_store.go +@@ -3,6 +3,7 @@ package stmt_store + import ( + "context" + "database/sql" ++ "math" + "sync" + "time" + +@@ -73,7 +74,7 @@ type Store interface { + // the cache can theoretically store as many elements as possible. + // (1 << 63) - 1 is the maximum value that an int64 type can represent. + const ( +- defaultMaxSize = (1 << 63) - 1 ++ defaultMaxSize = math.MaxInt + // defaultTTL defines the default time-to-live (TTL) for each cache entry. + // When the TTL for cache entries is not specified, each cache entry will expire after 24 hours. + defaultTTL = time.Hour * 24