Fix int32 overflow in archive reader

This commit is contained in:
Neil Macneale IV
2025-09-15 21:34:37 +00:00
parent 87307731c0
commit 187d948d41
+1 -1
View File
@@ -326,7 +326,7 @@ func (f *inMemoryArchiveIndexReader) getSuffix(idx uint32) suffix {
if idx >= uint32(len(f.suffixes)/hash.SuffixLen) {
return suffix{}
}
start := idx * hash.SuffixLen
start := uint64(idx) * hash.SuffixLen
return suffix(f.suffixes[start : start+hash.SuffixLen])
}