Fix an uninitialised read in conf_def.c
authorMatt Caswell <matt@openssl.org>
Tue, 12 Nov 2019 17:16:14 +0000 (17:16 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 14 Nov 2019 10:42:45 +0000 (10:42 +0000)
commitc15faa8d5c00445b0a6316b751a7e9c770b73252
tree2afbe874723baa8632295a9fb1080c9320e6b2e4
parentb3b045f6b0d23cb44f632cab8231fff362f16742
Fix an uninitialised read in conf_def.c

PR 8882 added a new field to the CONF structure. Unfortunately this
structure was created using OPENSSL_malloc() and the new field was not
explicitly initialised in the "init" function. Therefore when we came to
read it for the first time we got an uninitialised read.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10428)
crypto/conf/conf_def.c