diff options
author | ngie <ngie@FreeBSD.org> | 2015-04-24 11:03:47 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-04-24 11:03:47 +0000 |
commit | 2aab358f3c44ecc476d08f4e091b48069782b026 (patch) | |
tree | 21d03226aa0ddc37beb491d10bd2fa794376c011 /sbin | |
parent | b4f9c4540d0b85c6bb35e6feb7bbde82d86b5bff (diff) | |
download | FreeBSD-src-2aab358f3c44ecc476d08f4e091b48069782b026.zip FreeBSD-src-2aab358f3c44ecc476d08f4e091b48069782b026.tar.gz |
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
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions