freebsd-src/lib/libmd
Enji Cooper 5ed1b7dd32 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 Use unsigned comparisons. Prior to this commit, SHA1_Update and 2007-05-14 05:00:37 +00:00
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 Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
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 Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
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 Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
sha512c.c Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
sha_locl.h
sha.3 MFC r263863: 2014-03-31 00:28:54 +00:00
sha.h
shadriver.c Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00