opnsense-src/lib/libmd
Enji Cooper 6eec0f2bda 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-04-24 11:03:47 +00:00
..
i386 Use unsigned comparisons. Prior to this commit, SHA1_Update and 2007-05-14 05:00:37 +00:00
Makefile replace the kernel's version w/ cperciva's implementation... In all 2014-03-16 01:43:23 +00:00
md4.copyright $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
md4.h Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
md4c.c Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
md5.copyright $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
md5.h Just pick up the real thing from <sys/md5.h> 1996-12-22 10:32:17 +00:00
md5c.c Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
mddriver.c Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
mdX.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
mdXhl.c Avoid an infinite loop by ensuring that the amount of bytes read is greater 2015-04-24 11:03:47 +00:00
ripemd.3 Dereference nonexistent md2(3) manual. 2014-03-28 04:19:06 +00:00
ripemd.h Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
rmd160c.c Revert r274772: it is not valid on MIPS 2014-11-25 03:50:31 +00:00
rmd_locl.h Add Eric Young's RIPEMD160 implementation as well, in case SHA-1 1999-02-26 18:41:47 +00:00
rmdconst.h Add Eric Young's RIPEMD160 implementation as well, in case SHA-1 1999-02-26 18:41:47 +00:00
rmddriver.c Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
sha.3 Dereference nonexistent md2(3) manual. 2014-03-28 04:19:06 +00:00
sha.h Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
sha0c.c Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
sha1c.c Revert r274772: it is not valid on MIPS 2014-11-25 03:50:31 +00:00
sha256.3 Dereference nonexistent md2(3) manual. 2014-03-28 04:19:06 +00:00
sha256.h use a real uint64_t instead of writing code to emulate one.. 2014-01-11 20:49:22 +00:00
sha256c.c use a real uint64_t instead of writing code to emulate one.. 2014-01-11 20:49:22 +00:00
sha512.3 Dereference nonexistent md2(3) manual. 2014-03-28 04:19:06 +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 Fix bug in MDx test suite. 1999-02-26 04:25:01 +00:00
shadriver.c Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00