uranium62/xxHash

stream.Read return value is ignored

tshcherban opened this issue · 2 comments

stream.Read(buffer, 0, bufferSize);

There might be an issue if stream.read returned less than bufferSize (e.g. NetworkStream), invalid hash is calculated.

Hi @tshcherban
Thank you very much for this issue.
I am going to rewrite the stream implementation using pipes and fix the bug.
Your raised very serious problem about it I have never thought before

Fixed