Skip to content

Commit add3456

Browse files
committed
Fixed TransformByte IndexChunkData Error
1 parent 0b2adf7 commit add3456

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Base/HlpMultipleTransformNonBlock.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class MultipleTransformNonBlock : public Hash, public IINonBlockHash
3737

3838
virtual void TransformBytes(const HashLibByteArray &a_data, int32_t a_index, int32_t a_length)
3939
{
40-
_list.push_back(a_data);
40+
const HashLibByteArray::const_iterator start = a_data.begin() + a_index;
41+
const HashLibByteArray::const_iterator end = start + a_length;
42+
43+
_list.push_back(HashLibByteArray(start, end));
4144
} // end function TransformBytes
4245

4346
virtual IHashResult TransformFinal()

0 commit comments

Comments
 (0)