mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-24 19:48:41 -05:00
Fix int32 overflow in archive reader
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user