openssl/crypto/x509v3
Gunnar Kudrjavets 4c9b0a0314 Initialize potentially uninitialized local variables
Compiling OpenSSL code with MSVC and /W4 results in a number of warnings.
One category of warnings is particularly interesting - C4701 (potentially
uninitialized local variable 'name' used). This warning pretty much means
that there's a code path which results in uninitialized variables being used
or returned. Depending on compiler, its options, OS, values in registers
and/or stack, the results can be nondeterministic. Cases like this are very
hard to debug so it's rational to fix these issues.

This patch contains a set of trivial fixes for all the C4701 warnings (just
initializing variables to 0 or NULL or appropriate error code) to make sure
that deterministic values will be returned from all the execution paths.

RT#3835

Signed-off-by: Matt Caswell <matt@openssl.org>

Matt's note: All of these appear to be bogus warnings, i.e. there isn't
actually a code path where an unitialised variable could be used - its just
that the compiler hasn't been able to figure that out from the logic. So
this commit is just about silencing spurious warnings.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-05-06 13:06:46 +01:00
..
ext_dat.h more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
Makefile make update 2015-05-05 09:06:27 +01:00
pcy_cache.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_data.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_int.h
pcy_lib.c
pcy_map.c
pcy_node.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_tree.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
tabtest.c Add OSSL_NELEM macro. 2015-05-03 12:53:08 +01:00
v3_addr.c Initialize potentially uninitialized local variables 2015-05-06 13:06:46 +01:00
v3_akey.c
v3_akeya.c
v3_alt.c do_dirname: Don't change gen on failures 2015-04-11 20:30:24 +02:00
v3_asid.c Initialize potentially uninitialized local variables 2015-05-06 13:06:46 +01:00
v3_bcons.c
v3_bitst.c
v3_conf.c Initialize potentially uninitialized local variables 2015-05-06 13:06:46 +01:00
v3_cpols.c Code style: space after 'if' 2015-04-16 13:44:59 -04:00
v3_crld.c free NULL cleanup -- coda 2015-05-01 14:37:16 -04:00
v3_enum.c
v3_extku.c
v3_genn.c
v3_ia5.c
v3_info.c
v3_int.c
v3_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_ncons.c free cleanup 12 2015-04-30 18:10:52 -04:00
v3_pci.c free NULL cleanup 8 2015-04-30 11:31:07 -04:00
v3_pcia.c
v3_pcons.c
v3_pku.c
v3_pmaps.c
v3_prn.c free null cleanup finale 2015-05-01 10:02:07 -04:00
v3_purp.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_scts.c Remove libcrypto to libssl dependency 2015-05-05 09:05:51 +01:00
v3_skey.c
v3_sxnet.c
v3_utl.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3conf.c
v3err.c
v3prin.c