mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-12 14:22:06 +00:00
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:
parent
ec4b1a7d56
commit
c5bbb701f2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user