mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-07 13:38:28 +00:00
Clear Clang finding in CMAC
This commit is contained in:
parent
2cfa8a60a1
commit
67daaa2560
4
cmac.cpp
4
cmac.cpp
@ -151,7 +151,9 @@ void CMAC_Base::TruncatedFinal(byte *mac, size_t size)
|
||||
else
|
||||
cipher.AdvancedProcessBlocks(m_reg, m_reg+blockSize, m_reg, blockSize, BlockTransformation::BT_DontIncrementInOutPointers|BlockTransformation::BT_XorInput);
|
||||
|
||||
memcpy(mac, m_reg, size);
|
||||
// UBsan finding
|
||||
if (mac)
|
||||
memcpy(mac, m_reg, size);
|
||||
|
||||
m_counter = 0;
|
||||
memset(m_reg, 0, blockSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user