tpm2: Deactivate useless pAssert_RC that always evaluates to true (Coverity)

Coverity complains that the pAssert_RC's always evaluate to true and
are therefore useless. Deactivate them (wait for upstream to remove them).

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2026-03-06 13:11:29 -05:00 committed by Stefan Berger
parent ec4b1a7d56
commit c5bbb701f2

View File

@ -1757,7 +1757,7 @@ ParseSessionBuffer(COMMAND* command // IN: the structure that contains
extraKey.b.size = 0;
}
size = DecryptSize(command->index);
pAssert_RC(command->parameterSize <= INT32_MAX);
// pAssert_RC(command->parameterSize <= INT32_MAX); // libtpms deactivated (Coverity)
result = CryptParameterDecryption(s_sessionHandles[s_decryptSessionIndex],
&s_nonceCaller[s_decryptSessionIndex].b,
command->parameterSize,
@ -2215,7 +2215,7 @@ BuildResponseSession(COMMAND* command // IN: structure that has relevant comman
&extraKey);
}
size = EncryptSize(command->index);
pAssert_RC(command->parameterSize <= INT32_MAX);
// pAssert_RC(command->parameterSize <= INT32_MAX); // libtpms deactivated (Coverity)
// This function operates on internally-generated data that is
// expected to be well-formed for parameter encryption.
// In the event that there is a bug elsewhere in the code and the