1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/test
Simon Tatham 45e4fbf207 Fix handling of large RHS in mp_add_integer_into.
While looking over the code for other reasons, I happened to notice
that the internal function mp_add_masked_integer_into was using a
totally wrong condition to check whether it was about to do an
out-of-range right shift: it was comparing a shift count measured in
bits against BIGNUM_INT_BYTES.

The resulting bug hasn't shown up in the code so far, which I assume
is just because no caller is passing any RHS to mp_add_integer_into
bigger than about 1 or 2. And it doesn't show up in the test suite
because I hadn't tested those functions. Now I am testing them, and
the newly added test fails when built for 16-bit BignumInt if you back
out the actual fix in this commit.

(cherry picked from commit 921118dbea)
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 Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
cryptsuite.py Fix handling of large RHS in mp_add_integer_into. 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 Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
eccref.py eccref.py: add a couple more methods to ModP. 2019-01-03 16:56:02 +00:00
lattrs.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
scocols.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
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 Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
vt100.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00