Skip to content

Commit 1464fa9

Browse files
authored
tests: replace the LDAP OSS-Fuzz testcase (#4530)
The original testcase triggers a separate issue on 32-bit machines: #4527 and it should probably be tested separately. The new testcase triggers the issue fixed in 1935723 only: ```sh >>> assert l[0][LDAP].summary() == "LDAP" Traceback (most recent call last): File "<input>", line 2, in <module> File "scapy/scapy/packet.py", line 1692, in summary return self._do_summary()[1] ^^^^^^^^^^^^^^^^^^ File "scapy/scapy/packet.py", line 1669, in _do_summary ret = self.mysummary() ^^^^^^^^^^^^^^^^ File "scapy/scapy/layers/ldap.py", line 736, in mysummary self.messageID.val, ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'val' ```
1 parent 45c216f commit 1464fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/regression.uts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ file = BytesIO(b"\n\r\r\n\x00\x00\x008\x1a+<M\x00\x01\x00\x00\xef\xff\xff\x81\x0
23392339
l = rdpcap(file)
23402340

23412341
# Issue #69628
2342-
file = BytesIO(b"M<\xb2\xa1 \x00\xff\xf9\xff\x00\x00\xff\xff\xff\xa1\xb2<M\x01\x00\x00\x00\x00\x00\x00\x17\xca\xca\xca\xca\xca\xca\xca\xca\xca\xca\r\x80\x01[\x00\x01noenum\x00\x00\x00\x00\x00\x06value\x01\x00\x00\x00\x00\x00\x00\x01\x85\xff\xff\x00\x00\x94\xc3\x000\x00\x08\xa0\xf30\x800\x000\x00")
2342+
file = BytesIO(b"\xd4\xc3\xb2\xa1\x02\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x01\x00\x00\x00\x04{\xdcf\xc2\xa5\x07\x008\x00\x00\x008\x00\x00\x00A]+\xdb]\x04\x8e(6\n\x99\xcb\x08\x00E\x00\x00*\x00\x01\x00\x00@\x06\xe3V\x07\x87\xa5m\x17\x15\xd3m\x01\x85\x01\x85\x00\x00\x00\x00\x00\x00\x00\x00P\x02 \x00\xc5_\x00\x000\x00")
23432343
l = rdpcap(file)
23442344
assert l[0][LDAP].summary() == "LDAP"
23452345

0 commit comments

Comments
 (0)