mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
Handle large negative block counts correctly.
MFC after: 2 weeks
This commit is contained in:
parent
403c7f59d5
commit
6b7aceb85b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244134
@ -397,7 +397,7 @@ prthumanvalinode(int64_t bytes)
|
||||
static intmax_t
|
||||
fsbtoblk(int64_t num, uint64_t fsbs, u_long bs)
|
||||
{
|
||||
return (num * (intmax_t) fsbs / bs);
|
||||
return (num * (intmax_t) fsbs / (int64_t) bs);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user