File: 0001-Fix-overflow-on-32-bit-architectures.patch

package info (click to toggle)
golang-github-notaryproject-notation-go 1.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,652 kB
  • sloc: makefile: 21
file content (22 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Reinhard Tartler <siretart@tauware.de>
Date: Thu, 26 Dec 2024 07:17:09 -0500
Subject: Fix overflow on 32-bit architectures

Forwarded: https://github.com/notaryproject/notation-go/pull/500
---
 notation_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notation_test.go b/notation_test.go
index 64fbe07..83b5934 100644
--- a/notation_test.go
+++ b/notation_test.go
@@ -564,7 +564,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}