CID 340918: Uninitialized variables (UNINIT)
It seems to point to 78066157:
790 static isc_result_t
791. opensslrsa_tofile(const dst_key_t *key, const char *directory) {
792 isc_result_t ret;
1. var_decl: Declaring variable priv without initializer.
793 dst_private_t priv;
794 unsigned char *bufs[8] = { NULL };
795 unsigned short i = 0;
796 EVP_PKEY *pkey;
797. #if OPENSSL_VERSION_NUMBER < 0x30000000L
798 RSA *rsa = NULL;
799 const BIGNUM *n = NULL, *e = NULL, *d = NULL;
800 const BIGNUM *p = NULL, *q = NULL;
801 const BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL;
802 #else
803 BIGNUM *n = NULL, *e = NULL, *d = NULL;
804 BIGNUM *p = NULL, *q = NULL;
805 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL;
806. #endif /* OPENSSL_VERSION_NUMBER < 0x30000000L */
807
2. Condition key->keydata.pkey == NULL, taking true branch.
808 if (key->keydata.pkey == NULL) {
3. Jumping to label err.
809 DST_RET(DST_R_NULLKEY);
810 }
*** CID 340918: Uninitialized variables (UNINIT)
/lib/dns/opensslrsa_link.c: 937 in opensslrsa_tofile()
931 priv.nelements = i;
932 ret = dst__privstruct_writefile(key, &priv, directory);
933
934 err:
935 for (i = 0; i < ARRAY_SIZE(bufs); i++) {
936 if (bufs[i] != NULL) {
>>> CID 340918: Uninitialized variables (UNINIT)
>>> Using uninitialized value "priv.elements[i].length" when calling "isc__mem_put".
937 isc_mem_put(key->mctx, bufs[i],
938 priv.elements[i].length);
939 }
940 }
941 #if OPENSSL_VERSION_NUMBER < 0x30000000L
942 RSA_free(rsa);
Edited by Mark Andrews