mirror of https://github.com/wolfSSL/wolfssl.git
static analysis fix from infer
parent
ce2cf3439d
commit
ad0fd15a0d
|
@ -37041,6 +37041,7 @@ static int test_wolfSSL_ASN1_TIME_adj(void)
|
||||||
/* negative offset */
|
/* negative offset */
|
||||||
offset_sec = -45 * mini;
|
offset_sec = -45 * mini;
|
||||||
asn_time = wolfSSL_ASN1_TIME_adj(s, t, offset_day, offset_sec);
|
asn_time = wolfSSL_ASN1_TIME_adj(s, t, offset_day, offset_sec);
|
||||||
|
AssertNotNull(asn_time);
|
||||||
AssertTrue(asn_time->type == asn_utc_time);
|
AssertTrue(asn_time->type == asn_utc_time);
|
||||||
XSTRNCPY(date_str, (const char*)&asn_time->data, CTC_DATE_SIZE);
|
XSTRNCPY(date_str, (const char*)&asn_time->data, CTC_DATE_SIZE);
|
||||||
date_str[CTC_DATE_SIZE] = '\0';
|
date_str[CTC_DATE_SIZE] = '\0';
|
||||||
|
|
|
@ -6060,7 +6060,7 @@ static int DecodeRsaPssParams(const byte* params, word32 sz,
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
word32 idx = 0;
|
word32 idx = 0;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
word32 oid;
|
word32 oid = 0;
|
||||||
byte tag;
|
byte tag;
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue