mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
CodeQL: o is larger type and could cause issues
Make 'o' sp_size_t as the callers are passing 0 or explicit cast to sp_size_t
This commit is contained in:
@@ -7600,7 +7600,7 @@ static void _sp_add_off(const sp_int* a, const sp_int* b, sp_int* r, int o)
|
||||
* @param [in] o Number of digits to offset b.
|
||||
*/
|
||||
static void _sp_sub_off(const sp_int* a, const sp_int* b, sp_int* r,
|
||||
unsigned int o)
|
||||
sp_size_t o)
|
||||
{
|
||||
sp_size_t i = 0;
|
||||
sp_size_t j;
|
||||
@@ -7618,7 +7618,7 @@ static void _sp_sub_off(const sp_int* a, const sp_int* b, sp_int* r,
|
||||
}
|
||||
}
|
||||
else {
|
||||
i = (sp_size_t)o;
|
||||
i = o;
|
||||
}
|
||||
/* Index to add at is the offset now. */
|
||||
|
||||
|
Reference in New Issue
Block a user