From f4bae2ed6361917660f5238cd35672ad18d7babc Mon Sep 17 00:00:00 2001 From: cao Date: Tue, 8 Nov 2016 06:54:32 +0800 Subject: Fix coverity defects: CID 147575, 147577, 147578, 147579 CID 147575, Type:Unintentional integer overflow CID 147577, Type:Unintentional integer overflow CID 147578, Type:Unintentional integer overflow CID 147579, Type:Unintentional integer overflow Reviewed-by: Brian Behlendorf Signed-off-by: cao.xuewen Closes #5365 --- lib/libzfs/libzfs_sendrecv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libzfs/libzfs_sendrecv.c') diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c index 21d67e74d..8926d1173 100644 --- a/lib/libzfs/libzfs_sendrecv.c +++ b/lib/libzfs/libzfs_sendrecv.c @@ -259,7 +259,7 @@ cksummer(void *arg) * a power of 2 if necessary. */ if (!ISP2(numbuckets)) - numbuckets = 1 << high_order_bit(numbuckets); + numbuckets = 1ULL << high_order_bit(numbuckets); ddt.dedup_hash_array = calloc(numbuckets, sizeof (dedup_entry_t *)); ddt.ddecache = umem_cache_create("dde", sizeof (dedup_entry_t), 0, -- cgit v1.2.3