tpm2-tss:coverity_scan

Last commit made on 2024-03-11
Get this branch:
git clone -b coverity_scan https://git.launchpad.net/tpm2-tss

Branch merges

Branch information

Name:
coverity_scan
Repository:
lp:tpm2-tss

Recent commits

76aafd6... by Juergen Repp <email address hidden>

FAPI: Fix cleanup of policy sessions.

Policy sessions were not flushed if the policy session
was successfully executed but the command where the policy
was used for authorization was executed with an error.
For the session cleanup in error cases it will be tested
whethe the policy session still exists in the TPM.
Fixes: #2784

Signed-off-by: Juergen Repp <email address hidden>

c09666d... by Juergen Repp <email address hidden>

FAPI: Fix possible null pointer access in fapi crypto.

* In the cleanup function for an ossl hash context the variables
  were not checked before calling the ossl cleanup functions.
* An unneded cast was removed.

Signed-off-by: Juergen Repp <email address hidden>

7e51f2c... by Juergen Repp <email address hidden>

FAPI: Fix possible out of bound array access in IMA parser.

The wrong size variable was used to check the out of bound access.

Signed-off-by: Juergen Repp <email address hidden>

c8fea35... by Juergen Repp <email address hidden>

FAPI: Fix error checking authorization of signing key.

The return code of the authorization function for a signing key was not
checked.

Signed-off-by: Juergen Repp <email address hidden>

9fcb76b... by Juergen Repp <email address hidden>

TCTI device: Fix possible unmarshalling from uninitialized variable.

Ther was no else case in the receive function when the header
was not received but afterwards the partial_size was unmarshalled
from header. Now TSS2_TCTI_RC_GENERAL_FAILURE is returned in
this case.

Signed-off-by: Juergen Repp <email address hidden>

5ffc1b7... by Juergen Repp <email address hidden>

FAPI: Fix possible out of bound array access in IMA parser.

The IMA parser did not check the length field for the ima type.

Signed-off-by: Juergen Repp <email address hidden>

5d1d2cd... by Juergen Repp <email address hidden>

FAPI: fix memset 0 in ifapi_json_TPMS_POLICYNV_deserialize.

The wrong size was used to clear the memory if the field was not found.

Signed-off-by: Juergen Repp <email address hidden>

9c037a1... by Juergen Repp <email address hidden>

FAPI: Add fclose in error cases.

The function file_to_buffer did not close fp in error cases.

Signed-off-by: Juergen Repp <email address hidden>

fed1fd3... by Juergen Repp <email address hidden>

FAPI: Add size check for reading ima header.

It's now checked whether the complete ima header is read.

Signed-off-by: Juergen Repp <email address hidden>

b34608f... by Juergen Repp <email address hidden>

FAPI: fix dead code in ima set ff digest.

Returns were exchanged with goto error.

Signed-off-by: Juergen Repp <email address hidden>