https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196694
Bug ID: 196694 Summary: libmd doesn't detect EOF properly; can get stuck in an infinite loop in MDXFileChunk Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: n...@freebsd.org Created attachment 151578 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151578&action=edit Patch for fixing the md5 infinite loop read(2) can return 0 if an EOF is encountered. The problem is that the loop in MDXFileChunk doesn't account for this, so any callers of the API can encounter an infinite loop on EOF (which includes md5). The attached patch addresses this issue. Sponsored by: EMC / Isilon Storage Division -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"