| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
of unsigned char* argument.
|
| |
|
|
|
|
|
|
| |
error, due to an uninitialized variable.
Reviewed by: phk, archie
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
char *
FooFileChunk(const char *filename, char *buf, off_t offset, off_t length)
Which only hashes part of a file.
Implement FooFile() in terms of this function.
Submitted by: roam
|
| |
|
|
|
|
| |
Add Eric Young's SHA-[01] implementations.
|
|
|
|
|
|
|
| |
to be of type `const char *'.
PR: 3291
Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
|
|
| |
<stdio.h> doesn't (bogusly) include <sys/types.h>.
Cleaned up #includes.
|
|
|
|
|
| |
Submitted by: Ikuo Nakagawa <ikuo@isl.intec.co.jp>
PR: misc/1424
|
|
|
|
|
| |
Add argument for buffer for output.
Fix manuals.
|
| |
|
|
|
|
| |
constant. (There probably ought to be a single libc version of it.)
|
| |
|
| |
|
|
Imported libmd. This library contains MD2, MD4 and MD5.
These three boggers pop up all over the place all of the time, so I
decided we needed a library with them. In general they are used for
security checks, so if you use them you want to link them static.
|