Clear coverity finding FORWARD_NULL (CID 147865)
parent
1abb5c36bd
commit
1427f5ecf9
|
|
@ -171,18 +171,19 @@ size_t BlockTransformation::AdvancedProcessBlocks(const byte *inBlocks, const by
|
||||||
outIncrement = 0-outIncrement;
|
outIncrement = 0-outIncrement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Coverity finding.
|
||||||
|
bool xorFlag = xorBlocks && (flags & BT_XorInput);
|
||||||
while (length >= blockSize)
|
while (length >= blockSize)
|
||||||
{
|
{
|
||||||
if (flags & BT_XorInput)
|
if (xorFlag)
|
||||||
{
|
{
|
||||||
// Coverity finding. However, xorBlocks is never NULL if BT_XorInput.
|
// xorBlocks non-NULL and with BT_XorInput.
|
||||||
CRYPTOPP_ASSERT(xorBlocks);
|
|
||||||
xorbuf(outBlocks, xorBlocks, inBlocks, blockSize);
|
xorbuf(outBlocks, xorBlocks, inBlocks, blockSize);
|
||||||
ProcessBlock(outBlocks);
|
ProcessBlock(outBlocks);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// xorBlocks can be NULL. See, for example, ECB_OneWay::ProcessData.
|
// xorBlocks may be non-NULL and without BT_XorInput.
|
||||||
ProcessAndXorBlock(inBlocks, xorBlocks, outBlocks);
|
ProcessAndXorBlock(inBlocks, xorBlocks, outBlocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue