[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-commits
Subject:    git: usr.sbin/makefs: Cast daddr_t to off_t before multiplication
From:       Tomohiro Kusumi <tkusumi () crater ! dragonflybsd ! org>
Date:       2022-07-07 6:59:29
Message-ID: 20220707065929.670581A44B80 () crater ! dragonflybsd ! org
[Download RAW message or body]


commit d0a13d2ff133469dfc81f38950a52add4ff904e7
Author: Tomohiro Kusumi <tkusumi@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic