+2
−2
Loading
Fixed issue found by Coverity. 'payload_bytes' and 'zero_bytes' are 64-bit (uint64_t) integers and are calculated as a product of two 32-bit integers. To avoid using of 32-bit arithmetic potentially overflowing the result (truncating to 32-bit), we need to cast at least one of the integers to 64-bit. Change-Id: I323a3d1caa39f8358830f3fb06a5cc3fa0ca0555 Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23024 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>