HomeFreeBSD

makefs: Cast daddr_t to off_t before multiplication

Description

makefs: Cast daddr_t to off_t before multiplication

Apparently some large-file systems out there, such as my powerpc64le
Linux box, define daddr_t as a 32-bit type, which is sad and stymies
cross-building disk images. Cast daddr_t to off_t before doing
arithmetic that overflows.

Reviewed by: arichardson, jrtc27, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27458

Details

Provenance
nwf20_cl.cam.ac.ukAuthored on Jun 15 2021, 12:18 AM
jrtc27Committed on Jun 15 2021, 12:22 AM
Reviewer
arichardson
Differential Revision
D27458: makefs cast daddr_t to off_t before multiplication
Parents
rGdf4e97876513: relnotes: fix wording for gconcat entry.
Branches
Unknown
Tags
Unknown