Skip to content

Commit

Permalink
Revert "add assert to check integer overflow for table size (#1402)"
Browse files Browse the repository at this point in the history
This reverts commit 7f4e4b5.
  • Loading branch information
Ibrahim Jarif committed Jul 10, 2020
1 parent 0eb92fb commit 60e37bf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions table/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ func (b *Builder) shouldFinishBlock(key []byte, value y.ValueStruct) bool {
// So, size of IV is added to estimatedSize.
estimatedSize += aes.BlockSize
}
// Integer overflow check for table size.
y.AssertTrue(uint64(b.sz)+uint64(estimatedSize) < math.MaxUint32)

return estimatedSize > uint32(b.opt.BlockSize)
}

Expand Down

0 comments on commit 60e37bf

Please sign in to comment.