resolve windows warnings and add sanity check with PKCS12 parse

This commit is contained in:
Jacob Barthelmeh
2017-02-28 14:33:07 -07:00
parent b86dfd582f
commit f77458992e
4 changed files with 14 additions and 9 deletions

View File

@@ -4223,6 +4223,10 @@ static int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d)
q.used = a->used;
q.sign = a->sign;
}
else {
mp_init(&q); /* initialize to help static analysis */
}
w = 0;
for (ix = a->used - 1; ix >= 0; ix--) {