From b0eaa96d45f278774d66a7b54332fde93f40f621 Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 16 Jan 2023 14:49:21 +0100 Subject: [PATCH] Squash the uninitialized pointer read warning, CID 1519385, 1519387 --- osslsigncode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osslsigncode.c b/osslsigncode.c index 43b5577..5be4a82 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -6222,8 +6222,6 @@ int main(int argc, char **argv) /* reset MSI parameters */ memset(&msiparams, 0, sizeof(MSI_PARAMS)); - msiparams.msi = NULL; - msiparams.dirent = NULL; /* commands and options initialization */ if (!main_configure(argc, argv, &cmd, &options)) @@ -6432,7 +6430,9 @@ err_cleanup: } } unmap_file(indata, filesize); + /* coverity[uninit_use_in_call] False-positive: msiparams initialized by memset */ free_msi_params(&msiparams); + /* coverity[uninit_use_in_call] False-positive: cparams initialized by memset */ free_crypto_params(&cparams); free_options(&options); #if OPENSSL_VERSION_NUMBER>=0x30000000L