-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
Problem
Current implementation of func Sum(data []byte, code uint64, length int) (Multihash, error) doesn't handle error returned from hasher.Write. If there is non-nil error returned it could potentially mean that hasheris not being in valid state to calculate the hash byhasher.Sum()`.
Line 27 in 196bbeb
| hasher.Write(data) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels