summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_mattr_init.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-11-24 16:33:03 +0000
committerbde <bde@FreeBSD.org>1997-11-24 16:33:03 +0000
commitf48794b9f592747b49a561fac3392de4ae98657b (patch)
tree709ce072877f8755d18b58d51759ab3dc8b14eff /lib/libpthread/thread/thr_mattr_init.c
parent17589a04675b24622c64547b408d6243800feff0 (diff)
downloadFreeBSD-src-f48794b9f592747b49a561fac3392de4ae98657b.zip
FreeBSD-src-f48794b9f592747b49a561fac3392de4ae98657b.tar.gz
Fixed overflow in ufs_getblns(). For ufs on systems with 32-bit ints,
triple indirect blocks only worked for block sizes of 4K, since MNINDIR(ump)**3 overflows for larger block sizes (e.g., (8192/4)**3 = 2**33 > INT_MAX). This fix is not the obvious one of changing some types to 64 bits. It rearranges the code to avoid some unnecessary 64-bit calculations. Reviewed by: Kirk McKusick <mckusick@McKusick.COM>
Diffstat (limited to 'lib/libpthread/thread/thr_mattr_init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud