mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Merge pull request #8985 from sebastian-carpenter/GH-issue-8951
improper access of sp_int_minimal using sp_int
This commit is contained in:
@@ -5102,7 +5102,7 @@ static void _sp_init_size(sp_int* a, unsigned int size)
|
||||
#endif
|
||||
_sp_zero((sp_int*)am);
|
||||
|
||||
a->size = (sp_size_t)size;
|
||||
am->size = (sp_size_t)size;
|
||||
}
|
||||
|
||||
/* Initialize the multi-precision number to be zero with a given max size.
|
||||
|
@@ -932,7 +932,7 @@ typedef struct sp_int_minimal {
|
||||
sp_size_t size;
|
||||
#ifdef WOLFSSL_SP_INT_NEGATIVE
|
||||
/** Indicates whether number is 0/positive or negative. */
|
||||
sp_uint8 sign;
|
||||
sp_sign_t sign;
|
||||
#endif
|
||||
#ifdef HAVE_WOLF_BIGINT
|
||||
/** Unsigned binary (big endian) representation of number. */
|
||||
|
Reference in New Issue
Block a user