]> granicus.if.org Git - zfs/commit
Fix integer overflow in get_next_chunk()
authormadz <olivier.mazouffre@ims-bordeaux.fr>
Wed, 29 May 2019 17:17:25 +0000 (19:17 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 29 May 2019 17:17:25 +0000 (10:17 -0700)
commitec4afd27f198d93a7bd32a05cb288708ba754ada
treea60d65f1306a0489a19081643ee6de2ab444f8da
parent46df7e6cc97c5c95acdb54abe8b078d7ed410c64
Fix integer overflow in get_next_chunk()

dn->dn_datablksz type is uint32_t and need to be casted to uint64_t
to avoid an overflow when the record size is greater than 4 MiB.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olivier Mazouffre <olivier.mazouffre@ims-bordeaux.fr>
Closes #8778
Closes #8797
module/zfs/dmu.c