jessek / hashdeep

Other
694 stars 130 forks source link

`hashdeep` fails when encountering non-UTF-8 file paths #391

Open cipriancraciun opened 4 years ago

cipriancraciun commented 4 years ago

I'm using hashdeep 4.4 as per latest (Linux) openSUSE Tumbleweed, and when encountering an non-UTF-8 file-path, it bails with the following error:

terminate called after throwing an instance of 'utf8::invalid_utf8'
  what():  Invalid UTF-8
Aborted (core dumped)

It was invoked as (files were provided by a custom find call):

hashdeep -c md5 -f /dev/stdin -l -j 512 -u -Fm