From: Reinhard Tartler Date: Thu, 26 Dec 2024 07:17:09 -0500 Subject: Fix overflow on 32-bit architectures On 32-bit architectures, math.MaxInt64 overflows int in VerifyOptions.MaxSignatureAttempts. Use math.MaxInt instead. Origin: upstream, https://github.com/notaryproject/notation-go/commit/a48f22835cb593d4a8ab6032f141a64de01e278d Bug: https://github.com/notaryproject/notation-go/pull/500 Forwarded: https://github.com/notaryproject/notation-go/pull/563 Applied-Upstream: 1.3.0, commit:a48f22835cb593d4a8ab6032f141a64de01e278d Last-Update: 2026-09-25 --- notation_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notation_test.go b/notation_test.go index cae65c5..4ce29bc 100644 --- a/notation_test.go +++ b/notation_test.go @@ -586,7 +586,7 @@ func TestLocalContent(t *testing.T) { // verify the artifact verifyOpts := VerifyOptions{ ArtifactReference: artifactReference, - MaxSignatureAttempts: math.MaxInt64, + MaxSignatureAttempts: math.MaxInt, } policyDocument := dummyPolicyDocument() verifier := dummyVerifier{&policyDocument, mock.PluginManager{}, false, *trustpolicy.LevelStrict, false}