git: usr.sbin/makefs: Cast daddr_t to off_t before multiplication

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Jul 6 23:59:29 PDT 2022


commit d0a13d2ff133469dfc81f38950a52add4ff904e7
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Wed Jul 6 12:43:08 2022 -0700

    usr.sbin/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.
    
    taken-from FreeBSD 7ef082733bf8989797b71025ba6d597a7d17d92b

Summary of changes:
 usr.sbin/makefs/ffs/buf.c  | 4 ++--
 usr.sbin/makefs/ffs/mkfs.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0a13d2ff133469dfc81f38950a52add4ff904e7


-- 
DragonFly BSD source repository


More information about the Commits mailing list