sprofile: various correctness fixes.
This commit is contained in:
1 parent
2a0b99d9f9
commit
4e92687cab
6 files changed
+24
-4
No files matched your search
@@ -149,7 +149,7 @@ namespace ams::crypto::impl {
|
||||
|
||||
/* Copy in any leftover data. */
|
||||
if (const auto left = size % BlockSize; left > 0) {
|
||||
std::memcpy(m_y, cur_block, size);
|
||||
std::memcpy(m_y, cur_block, left);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user