aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_filter.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-03 15:54:14 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-03 16:00:12 +0200
commit0ed2d8e07d3806d78d03a77d2153f22f9d733a07 (patch)
treea337653ca5861a1a24b44a22c971384c365f0305 /test/functional/p2p_filter.py
parentf0d6487e290761a4fb03798240a351b5fddfdb38 (diff)
downloadbitcoin-0ed2d8e07d3806d78d03a77d2153f22f9d733a07.tar.xz
test: add BIP37 remote crash bug [CVE-2013-5700] test to p2p_filter.py
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-xtest/functional/p2p_filter.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py
index 2940542e5e..188b130a57 100755
--- a/test/functional/p2p_filter.py
+++ b/test/functional/p2p_filter.py
@@ -11,6 +11,7 @@ from test_framework.messages import (
MSG_FILTERED_BLOCK,
msg_getdata,
msg_filterload,
+ msg_filteradd,
msg_filterclear,
)
from test_framework.mininode import (
@@ -103,6 +104,10 @@ class FilterTest(BitcoinTestFramework):
txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 7)
filter_node.wait_for_tx(txid)
+ self.log.info("Check that division-by-zero remote crash bug [CVE-2013-5700] is fixed")
+ filter_node.send_and_ping(msg_filterload(data=b'', nHashFuncs=1))
+ filter_node.send_and_ping(msg_filteradd(data=b'letstrytocrashthisnode'))
+
if __name__ == '__main__':
FilterTest().main()