[Bug 196694] libmd doesn't detect EOF properly; can get stuck in an infinite loop in MDXFileChunk
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 24 11:04:02 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196694
--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:
Author: ngie
Date: Fri Apr 24 11:03:48 UTC 2015
New revision: 281928
URL: https://svnweb.freebsd.org/changeset/base/281928
Log:
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 at dons.net.au>
Sponsored by: EMC / Isilon Storage Division
Changes:
head/lib/libmd/mdXhl.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list