]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r283054:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 May 2015 10:46:51 +0000 (10:46 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 May 2015 10:46:51 +0000 (10:46 +0000)
commit9e3bfcc72461b19d9e138a3e24d04f508895bff7
treefbf867802f600163f2f8110673081e319fe50433
parent93e187629562120c3b4ff9f65161a28516ce93fa
MFstable/10 r283054:

MFC r281928:

Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/9@283055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libmd/mdXhl.c