putty/test
Simon Tatham f86f396578 Fix mp_{eq,hs}_integer(tiny, huge).
The comparison functions between an mp_int and an integer worked by
walking along the mp_int, comparing each of its words to the
corresponding word of the integer. When they ran out of mp_int, they'd
stop.

But this overlooks the possibility that they might not have run out of
_integer_ yet! If BIGNUM_INT_BITS is defined to be less than the size
of a uintmax_t, then comparing (say) the uintmax_t 0x8000000000000001
against a one-word mp_int containing 0x0001 would return equality,
because it would never get as far as spotting the high bit of the
integer.

Fixed by iterating up to the max of the number of BignumInts in the
mp_int and the number that cover a uintmax_t. That means we have to
use mp_word() instead of a direct array lookup to get the mp_int words
to compare against, since now the word indices might be out of range.

(cherry picked from commit 289d8873ec)
2020-06-14 15:49:36 +01:00
..
sclog sclog.c: print 'stores' for memory stores 2020-02-09 08:19:21 +00:00
agenttest.py New test script 'agenttest.py' for testing Pageant. 2020-02-09 08:51:37 +00:00
agenttestdata.py New test script 'agenttest.py' for testing Pageant. 2020-02-09 08:51:37 +00:00
agenttestgen.py New test script 'agenttest.py' for testing Pageant. 2020-02-09 08:51:37 +00:00
colours.txt
cryptsuite.py Fix mp_{eq,hs}_integer(tiny, huge). 2020-06-14 15:49:36 +01:00
desref.py Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
display.txt
eccref.py eccref.py: add a couple more methods to ModP. 2019-01-03 16:56:02 +00:00
lattrs.txt
scocols.txt
ssh.py New test script 'agenttest.py' for testing Pageant. 2020-02-09 08:51:37 +00:00
testcrypt.py testcrypt: fix malformatted error message. 2020-02-09 08:19:21 +00:00
utf8.txt
vt100.txt