Date: Fri, 24 Apr 2015 11:04:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196694] libmd doesn't detect EOF properly; can get stuck in an infinite loop in MDXFileChunk Message-ID: <bug-196694-8-hjIGfeHLWs@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-196694-8@https.bugs.freebsd.org/bugzilla/> References: <bug-196694-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196694 --- Comment #2 from commit-hook@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196694-8-hjIGfeHLWs>