summaryrefslogtreecommitdiff
path: root/security/vuls
diff options
context:
space:
mode:
Diffstat (limited to 'security/vuls')
-rw-r--r--security/vuls/Makefile4
-rw-r--r--security/vuls/distinfo10
-rw-r--r--security/vuls/files/patch-vendor_gorm.io_gorm_internal_stmt_store_stmt_store.go29
3 files changed, 36 insertions, 7 deletions
diff --git a/security/vuls/Makefile b/security/vuls/Makefile
index 41202a450d2e..2ab5e195efa7 100644
--- a/security/vuls/Makefile
+++ b/security/vuls/Makefile
@@ -1,6 +1,6 @@
PORTNAME= vuls
DISTVERSIONPREFIX=v
-DISTVERSION= 0.30.0
+DISTVERSION= 0.32.0
PORTREVISION= 1
CATEGORIES= security
@@ -11,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 5582ab054b4b..171f6cc2ca7b 100644
--- a/security/vuls/distinfo
+++ b/security/vuls/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1742282513
-SHA256 (go/security_vuls/vuls-v0.30.0/v0.30.0.mod) = 6d16afc366439e46246a922eca6610af48968ee12b6122451aa81c545d768dfe
-SIZE (go/security_vuls/vuls-v0.30.0/v0.30.0.mod) = 20812
-SHA256 (go/security_vuls/vuls-v0.30.0/v0.30.0.zip) = 82fa3e1de8b42394db0c84dd8eaeed0f5c88f88b6ffa88639a522025bcc9db7d
-SIZE (go/security_vuls/vuls-v0.30.0/v0.30.0.zip) = 1372384
+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