From ead9081318aa17a9b90e26061ca79946e7fa7ca9 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 6 Aug 2013 16:45:49 +0000 Subject: [PATCH] One more defensive assert, just to be sure. [originally from svn r9997] --- sshbn.c | 1 + 1 file changed, 1 insertion(+) 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;