diff options
Diffstat (limited to 'security/vuls')
-rw-r--r-- | security/vuls/Makefile | 5 | ||||
-rw-r--r-- | security/vuls/distinfo | 10 | ||||
-rw-r--r-- | security/vuls/files/patch-vendor_gorm.io_gorm_internal_stmt_store_stmt_store.go | 29 |
3 files changed, 37 insertions, 7 deletions
diff --git a/security/vuls/Makefile b/security/vuls/Makefile index a202c3f5fe81..2ab5e195efa7 100644 --- a/security/vuls/Makefile +++ b/security/vuls/Makefile @@ -1,6 +1,7 @@ PORTNAME= vuls DISTVERSIONPREFIX=v -DISTVERSION= 0.31.1 +DISTVERSION= 0.32.0 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= girgen@FreeBSD.org @@ -10,7 +11,7 @@ WWW= https://vuls.io LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE -USES= go:1.23,modules +USES= go:1.24,modules GO_MODULE= github.com/future-architect/vuls GO_TARGET= ./cmd/${PORTNAME} diff --git a/security/vuls/distinfo b/security/vuls/distinfo index a567c9ed0f6c..171f6cc2ca7b 100644 --- a/security/vuls/distinfo +++ b/security/vuls/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1746696143 -SHA256 (go/security_vuls/vuls-v0.31.1/v0.31.1.mod) = 5b19a8a2789f1f93369c7bf24d38df8b345a7a871b2b229aec6349b9db98027e -SIZE (go/security_vuls/vuls-v0.31.1/v0.31.1.mod) = 20796 -SHA256 (go/security_vuls/vuls-v0.31.1/v0.31.1.zip) = 40312da1c3021023a0bee1822b8622713e48137b3ca29f14f4347c79a88ec425 -SIZE (go/security_vuls/vuls-v0.31.1/v0.31.1.zip) = 1376467 +TIMESTAMP = 1747479508 +SHA256 (go/security_vuls/vuls-v0.32.0/v0.32.0.mod) = e3091e79324dcdd3e3c2959a3b9fa4ab03fc4d53a0ce41a76fc793a68b57302e +SIZE (go/security_vuls/vuls-v0.32.0/v0.32.0.mod) = 20795 +SHA256 (go/security_vuls/vuls-v0.32.0/v0.32.0.zip) = 1eed06de6c88de618a25184d843010c76b30b77a8e554f028a2700a5e267266b +SIZE (go/security_vuls/vuls-v0.32.0/v0.32.0.zip) = 1389053 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 |