mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
Squash the uninitialized pointer read warning, CID 1519385, 1519387
This commit is contained in:
parent
fade782e58
commit
b0eaa96d45
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user