You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error with the current implementation of DigestBuf::write, which causes incorrect hashes to be calculated. The problem is that the call to self.inner.write is not guaranteed to write all the bytes in buf, so the same bytes might be offered to the hasher more than once.
There is an error with the current implementation of
DigestBuf::write
, which causes incorrect hashes to be calculated. The problem is that the call toself.inner.write
is not guaranteed to write all the bytes inbuf
, so the same bytes might be offered to the hasher more than once.ocipkg/ocipkg/src/digest.rs
Lines 97 to 100 in 8f98b8f
The problem can be solved by rewriting the function as follows:
The text was updated successfully, but these errors were encountered: