From: simon Date: Tue, 6 Aug 2013 16:45:49 +0000 (+0000) Subject: One more defensive assert, just to be sure. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/16bd1b88e5af81eaecab85795407cd768a296af4 One more defensive assert, just to be sure. git-svn-id: svn://svn.tartarus.org/sgt/putty@9997 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sshbn.c b/sshbn.c index 1c5c46a1..a5e0552f 100644 --- a/sshbn.c +++ b/sshbn.c @@ -607,6 +607,7 @@ static void internal_add_shifted(BignumInt *number, addend = (BignumDblInt)n << bshift; while (addend) { + assert(word <= number[0]); addend += number[word]; number[word] = (BignumInt) addend & BIGNUM_INT_MASK; addend >>= BIGNUM_INT_BITS;