From 4bd167a8bedde9d2a9f5f5c7dc46275045f8fd63 Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 31 Mar 2025 11:02:37 +0200 Subject: [PATCH] Fixed directly dereferencing parameter p7, CID 1576008 --- osslsigncode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index ed96124..eecb5cc 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -1357,7 +1357,7 @@ static int add_unauthenticated_blob(PKCS7 *p7, const char *blob_file) fprintf(stderr, "Failed to obtain PKCS#7 signer info list\n"); return 0; /* FAILED */ } - si = sk_PKCS7_SIGNER_INFO_value(p7->d.sign->signer_info, 0); + si = sk_PKCS7_SIGNER_INFO_value(signer_info, 0); if (!si) { fprintf(stderr, "Failed to obtain signer info from PKCS#7 structure\n"); return 0; /* FAILED */