Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check calcHash() for errors when creating buffer
Even though we only call calcHash() if `size > LargeFileThreshold` is false, it may still return ErrFileTooLarge if `size` is smaller than the actual size of the file that we've just read from disk, i.e. if the file on disk has increased since we checked it via os.Stat().
- Loading branch information