freebsd-skq/lib/libmd
ngie 4fde1f4b38 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
2015-05-18 10:45:18 +00:00
..
i386
Makefile Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd. 2012-04-28 02:48:51 +00:00
md4.copyright
md4.h
md4c.c
md5.copyright
md5.h
md5c.c
mddriver.c
mdX.3 Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd. 2012-04-28 02:48:51 +00:00
mdXhl.c MFC r281928: 2015-05-18 10:45:18 +00:00
ripemd.3 MFC r263863: 2014-03-31 00:28:54 +00:00
ripemd.h
rmd160c.c
rmd_locl.h
rmdconst.h
rmddriver.c
sha0c.c
sha1c.c
sha256.3 MFC r263863: 2014-03-31 00:28:54 +00:00
sha256.h
sha256c.c
sha512.3 MFC r263863: 2014-03-31 00:28:54 +00:00
sha512.h
sha512c.c
sha_locl.h
sha.3 MFC r263863: 2014-03-31 00:28:54 +00:00
sha.h
shadriver.c