Merge pull request #8985 from sebastian-carpenter/GH-issue-8951

improper access of sp_int_minimal using sp_int
This commit is contained in:
David Garske
2025-07-10 15:21:20 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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. */