Merge pull request #8711 from JacobBarthelmeh/coverity

fix for sanity check on --group with unit test app and null sanity check with des decrypt
This commit is contained in:
David Garske
2025-05-09 11:41:53 -07:00
committed by GitHub
3 changed files with 6 additions and 1 deletions

View File

@@ -1742,6 +1742,10 @@
{
word32 blocks = sz / DES_BLOCK_SIZE;
if (des == NULL || out == NULL || in == NULL) {
return BAD_FUNC_ARG;
}
while (blocks--) {
XMEMCPY(des->tmp, in, DES_BLOCK_SIZE);
DesProcessBlock(des, (byte*)des->tmp, out);