From 0ed2d8e07d3806d78d03a77d2153f22f9d733a07 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Fri, 3 Apr 2020 15:54:14 +0200 Subject: test: add BIP37 remote crash bug [CVE-2013-5700] test to p2p_filter.py --- test/functional/test_framework/messages.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/functional/test_framework/messages.py') diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index ff0c763b72..5f8fcc6fd8 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -1356,6 +1356,25 @@ class msg_filterload: self.data, self.nHashFuncs, self.nTweak, self.nFlags) +class msg_filteradd: + __slots__ = ("data") + command = b"filteradd" + + def __init__(self, data): + self.data = data + + def deserialize(self, f): + self.data = deser_string(f) + + def serialize(self): + r = b"" + r += ser_string(self.data) + return r + + def __repr__(self): + return "msg_filteradd(data={})".format(self.data) + + class msg_filterclear: __slots__ = () command = b"filterclear" -- cgit v1.2.3