Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Unified Diff: src/platform/vboot_reference/utils/dumpRSAPublicKey.c

Issue 874003: Vboot Reference: Initialize local pointers with NULL. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/utils/dumpRSAPublicKey.c
diff --git a/src/platform/vboot_reference/utils/dumpRSAPublicKey.c b/src/platform/vboot_reference/utils/dumpRSAPublicKey.c
index e3ac4b775473a0da574c6fd83293fd484fdf9f80..b6a5190fb48956f692eff8b55d1afad089dc3a1d 100644
--- a/src/platform/vboot_reference/utils/dumpRSAPublicKey.c
+++ b/src/platform/vboot_reference/utils/dumpRSAPublicKey.c
@@ -43,10 +43,10 @@ int check(RSA* key) {
void output(RSA* key) {
int i, nwords;
BIGNUM *N = key->n;
- BIGNUM *Big1, *Big2, *Big32, *BigMinus1;
- BIGNUM *B;
- BIGNUM *N0inv, *R, *RR, *RRTemp, *NnumBits;
- BIGNUM *n, *rr;
+ BIGNUM *Big1 = NULL, *Big2 = NULL, *Big32 = NULL, *BigMinus1 = NULL;
+ BIGNUM *B = NULL;
+ BIGNUM *N0inv= NULL, *R = NULL, *RR = NULL, *RRTemp = NULL, *NnumBits = NULL;
+ BIGNUM *n = NULL, *rr = NULL;
BN_CTX *bn_ctx = BN_CTX_new();
uint32_t n0invout;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698