Skip to content

Commit 8d68977

Browse files
authored
Merge pull request wolfSSL#8985 from sebastian-carpenter/GH-issue-8951
improper access of sp_int_minimal using sp_int
2 parents 4d4228c + a00cfcb commit 8d68977

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wolfcrypt/src/sp_int.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5102,7 +5102,7 @@ static void _sp_init_size(sp_int* a, unsigned int size)
51025102
#endif
51035103
_sp_zero((sp_int*)am);
51045104

5105-
a->size = (sp_size_t)size;
5105+
am->size = (sp_size_t)size;
51065106
}
51075107

51085108
/* Initialize the multi-precision number to be zero with a given max size.

wolfssl/wolfcrypt/sp_int.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ typedef struct sp_int_minimal {
932932
sp_size_t size;
933933
#ifdef WOLFSSL_SP_INT_NEGATIVE
934934
/** Indicates whether number is 0/positive or negative. */
935-
sp_uint8 sign;
935+
sp_sign_t sign;
936936
#endif
937937
#ifdef HAVE_WOLF_BIGINT
938938
/** Unsigned binary (big endian) representation of number. */

0 commit comments

Comments
 (0)