aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/backend-sqlite.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-05-28 10:45:21 +0000
committerWerner Koch <[email protected]>2024-05-28 10:57:44 +0000
commitd631c8198c254107c0a4e704511fa0f33d3dda5f (patch)
tree8d77669fa8809d9fee7eb9d8a7b589f28a0029e2 /kbx/backend-sqlite.c
parenttpm: Do not use fprintf for logging. (diff)
downloadgnupg-d631c8198c254107c0a4e704511fa0f33d3dda5f.tar.gz
gnupg-d631c8198c254107c0a4e704511fa0f33d3dda5f.zip
tpm: Improve error handling and check returned lengths.
* tpm2d/command.c (cmd_pkdecrypt): Handle unknown algo. Also slightly rework error handling. * tpm2d/tpm2.c (sexp_to_tpm2_public_ecc): Check length before checking for 0x04. Rework error handling. (tpm2_ObjectPublic_GetName): Check the return value of TSS_GetDigestSize before use. Erro handling rework. (tpm2_SensitiveToDuplicate): Ditto. (tpm2_import_key): Ditto. * tpm2d/intel-tss.h (TSS_Hash_Generate): Check passed length for negative values. Check return value of TSS_GetDigestSize. Use dedicated 16 bit length variable. -- These are reworked and improved fixes as reported in GnuPG-bug-id: 7129
Diffstat (limited to 'kbx/backend-sqlite.c')
0 files changed, 0 insertions, 0 deletions