SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
security/hashdeep/patches/patch-src_hash_cpp
Normal file
23
security/hashdeep/patches/patch-src_hash_cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
Fixes for Clang 6.
|
||||
|
||||
Index: src/hash.cpp
|
||||
--- src/hash.cpp.orig
|
||||
+++ src/hash.cpp
|
||||
@@ -124,7 +124,7 @@ bool file_data_hasher_t::compute_hash(uint64_t request
|
||||
|
||||
// If an error occured, display a message and see if we need to quit.
|
||||
if ((current_read_bytes<0) || (this->handle && ferror(this->handle))){
|
||||
- ocb->error_filename(this->file_name,"error at offset %"PRIu64": %s",
|
||||
+ ocb->error_filename(this->file_name,"error at offset %" PRIu64": %s",
|
||||
request_start, strerror(errno));
|
||||
|
||||
if (file_fatal_error()){
|
||||
@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
|
||||
MAP_FILE|
|
||||
#endif
|
||||
MAP_SHARED,fd,0);
|
||||
- if(fdht->base>0){
|
||||
+ if(fdht->base != nullptr){
|
||||
/* mmap is successful, so set the bounds.
|
||||
* if it is not successful, we default to reading the fd
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue