mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
One more defensive assert, just to be sure.
[originally from svn r9997]
This commit is contained in:
parent
a7cc906df0
commit
ead9081318
1
sshbn.c
1
sshbn.c
@ -607,6 +607,7 @@ static void internal_add_shifted(BignumInt *number,
|
|||||||
addend = (BignumDblInt)n << bshift;
|
addend = (BignumDblInt)n << bshift;
|
||||||
|
|
||||||
while (addend) {
|
while (addend) {
|
||||||
|
assert(word <= number[0]);
|
||||||
addend += number[word];
|
addend += number[word];
|
||||||
number[word] = (BignumInt) addend & BIGNUM_INT_MASK;
|
number[word] = (BignumInt) addend & BIGNUM_INT_MASK;
|
||||||
addend >>= BIGNUM_INT_BITS;
|
addend >>= BIGNUM_INT_BITS;
|
||||||
|
Loading…
Reference in New Issue
Block a user