mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Update tempOutString buffer length calculation
This commit is contained in:
parent
9a7f4f05cd
commit
29b7ea850e
@ -116,7 +116,7 @@ void AdditiveCipherTemplate<S>::ProcessData(byte *outString, const byte *inStrin
|
||||
|
||||
if (!length) {
|
||||
if (copyOut)
|
||||
std::memcpy(savedOutString, m_tempOutString.BytePtr(), savedLength-length);
|
||||
std::memcpy(savedOutString, m_tempOutString.BytePtr(), savedLength);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -259,7 +259,7 @@ void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString
|
||||
|
||||
if (!length) {
|
||||
if (copyOut)
|
||||
std::memcpy(savedOutString, m_tempOutString.BytePtr(), savedLength-length);
|
||||
std::memcpy(savedOutString, m_tempOutString.BytePtr(), savedLength);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user