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
..
2012-12-07 18:47:47 +00:00
2013-08-05 16:23:22 +01:00
2001-05-03 08:50:27 +00:00
2010-11-23 02:12:07 +00:00
2015-05-05 22:18:59 -04:00
2015-05-01 17:46:17 +01:00
2011-03-19 10:58:14 +00:00
2015-04-20 07:23:04 -04:00
1998-12-21 10:56:39 +00:00
1998-12-21 10:56:39 +00:00
1998-12-21 10:56:39 +00:00
2015-03-31 20:16:01 +02:00
2015-04-20 07:23:04 -04:00
2011-03-20 14:02:20 +00:00
2008-05-01 23:30:06 +00:00
2015-04-10 18:51:52 +01:00
2015-05-04 13:03:49 +01:00
2015-03-31 20:16:01 +02:00
2015-05-04 13:03:49 +01:00
2015-04-30 21:37:06 -04:00
2015-01-22 09:20:09 +00:00
2015-05-01 10:02:07 -04:00
2015-05-04 15:00:13 -04:00
2015-05-04 15:00:13 -04:00
2015-05-05 22:18:59 -04:00
2015-05-01 10:02:07 -04:00
2015-05-06 13:06:46 +01:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-05-04 13:03:49 +01:00
2015-05-05 22:18:59 -04:00
2015-04-16 13:44:59 -04:00
2015-03-31 20:16:01 +02:00
2015-05-04 13:03:49 +01:00
2015-03-31 20:16:01 +02:00
2015-05-04 15:00:13 -04:00
2015-03-05 18:20:06 +01:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-01-22 09:20:10 +00:00
2015-03-31 20:16:01 +02:00
2015-04-20 07:23:04 -04:00
2015-04-20 07:23:04 -04:00
1998-12-21 10:52:47 +00:00
1998-12-21 10:52:47 +00:00
2011-12-11 16:39:25 +00:00
2015-01-22 09:20:09 +00:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-05-05 22:18:59 -04:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2013-09-13 19:32:55 -07:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2015-03-31 20:16:01 +02:00
2008-03-18 14:37:59 +00:00
2015-03-31 20:16:01 +02:00
2015-05-04 15:14:26 -04:00
1998-12-21 10:56:39 +00:00
1998-12-21 10:56:39 +00:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2012-07-15 13:38:51 +00:00
2009-04-27 19:04:23 +00:00
2013-03-31 14:32:05 +02:00
2015-04-20 07:23:04 -04:00
2015-04-17 01:33:51 -04:00
2011-03-19 10:58:14 +00:00
1998-12-21 10:52:47 +00:00
2015-03-29 03:26:12 +01:00
2015-03-29 03:26:12 +01:00
2015-03-29 03:26:12 +01:00
2015-03-29 03:26:12 +01:00
2015-04-26 10:31:48 -04:00
2015-04-26 10:31:48 -04:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2000-08-25 01:29:41 +00:00
1998-12-21 10:52:47 +00:00
1998-12-21 10:52:47 +00:00
2015-03-29 03:26:12 +01:00
2015-03-05 18:20:06 +01:00
2014-12-04 11:55:03 +01:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2015-04-08 12:28:15 -04:00
2014-12-04 11:55:03 +01:00
2005-04-09 16:07:12 +00:00
2015-04-10 10:06:17 -04:00
2015-04-08 14:07:39 -04:00
2015-05-04 13:03:49 +01:00
2015-01-22 09:20:09 +00:00
1998-12-21 10:52:47 +00:00
2009-04-20 11:33:12 +00:00
2015-04-10 10:06:17 -04:00
2015-04-08 12:28:15 -04:00
2015-01-30 14:43:57 +01:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2011-03-19 10:58:14 +00:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2011-03-19 10:58:14 +00:00
2015-04-10 10:06:17 -04:00
2011-03-19 10:58:14 +00:00
2015-04-20 07:23:04 -04:00
1998-12-21 10:52:47 +00:00
1998-12-21 10:52:47 +00:00
2015-03-31 20:16:01 +02:00
1999-05-13 11:37:32 +00:00
1999-05-13 11:37:32 +00:00
2015-03-31 20:16:01 +02:00