Date: Mon, 16 Apr 2018 19:33:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 227496] [patch] /usr/bin/quota overflow and underflow for NFS quota values. Message-ID: <bug-227496-227-IBX6lXwZK0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227496-227@https.bugs.freebsd.org/bugzilla/> References: <bug-227496-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227496 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: cem Date: Mon Apr 16 19:33:04 UTC 2018 New revision: 332632 URL: https://svnweb.freebsd.org/changeset/base/332632 Log: quota(1): Fix calculation overflow and underflow For very large quotas, do the multiplication as a 64 bit value to avoid overflow. For very small block sizes (smaller than DEV_BSIZE), multiple first before dividing by block size to avoid underflow. PR: 227496 Submitted by: Per Andersson <pa AT chalmers.se> Sponsored by: Dell EMC Isilon Changes: head/usr.bin/quota/quota.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227496-227-IBX6lXwZK0>