From b8b7aab69440e0b8413f0ce63c4fcc09700088e3 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Fri, 10 Jul 2020 15:03:59 +0530 Subject: [PATCH] Revert "add assert to check integer overflow for table size (#1402)" This reverts commit 7f4e4b560aabb5521f3591972ab5fdc1aec6801b. --- table/builder.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/table/builder.go b/table/builder.go index 6a6f194ec..50ba15356 100644 --- a/table/builder.go +++ b/table/builder.go @@ -327,9 +327,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) }