Fix assertion in DEBUG builds
parent
63cd55901c
commit
7d4a5d3ded
|
|
@ -306,8 +306,11 @@ void BLAKE2_Base<W, T_64bit>::Update(const byte *input, size_t length)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy_s(&m_state.buffer[m_state.length], BLOCKSIZE - m_state.length, input, length);
|
if (input && length)
|
||||||
m_state.length += static_cast<unsigned int>(length);
|
{
|
||||||
|
memcpy_s(&m_state.buffer[m_state.length], BLOCKSIZE - m_state.length, input, length);
|
||||||
|
m_state.length += static_cast<unsigned int>(length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class W, bool T_64bit>
|
template <class W, bool T_64bit>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue