]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_t
authormarcel <marcel@FreeBSD.org>
Wed, 21 May 2014 17:39:49 +0000 (17:39 +0000)
committermarcel <marcel@FreeBSD.org>
Wed, 21 May 2014 17:39:49 +0000 (17:39 +0000)
commit12d9d80011126926f1ca0cc86990a22ac1d3da84
tree4d096354eb504303b95cc6f5c5e0d8abccedb27d
parent92a68a85011c4363508742c690180a02d6b07aa7
Fix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_t
before multiplying the 32-bit integrals to avoid any possibility of
truncation before widening. Not a likely scenario to begin with...
usr.bin/mkimg/bsd.c
usr.bin/mkimg/vtoc8.c