forked from wolfSSL/wolfssl
help coverity with max size issue on unsigned addition
This commit is contained in:
@ -95,7 +95,7 @@ void s_fp_add(fp_int *a, fp_int *b, fp_int *c)
|
|||||||
register fp_word t;
|
register fp_word t;
|
||||||
|
|
||||||
y = MAX(a->used, b->used);
|
y = MAX(a->used, b->used);
|
||||||
oldused = c->used;
|
oldused = MAX(c->used, FP_SIZE); /* help static analysis w/ max size */
|
||||||
c->used = y;
|
c->used = y;
|
||||||
|
|
||||||
t = 0;
|
t = 0;
|
||||||
|
Reference in New Issue
Block a user