tests:dcerpc/raw_protocol: reproduce call_id truncation bug
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Feb 2018 23:50:26 +0000 (00:50 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 21 Feb 2018 13:19:19 +0000 (14:19 +0100)
We need to make sure the server handles call_id values > UINT16_MAX.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13289

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/tests/dcerpc/raw_protocol.py
selftest/knownfail.d/dcerpc_raw_protocol [new file with mode: 0644]

index 587df540d0903a590f106350a38a123e624f2c02..ff815e97ca637435b4a3204a0fec198e37600892 100755 (executable)
@@ -1974,7 +1974,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
 
             # And now try a request without auth_info
             # netr_ServerReqChallenge()
-            req = self.generate_request(call_id = 2,
+            req = self.generate_request(call_id = 0x21234,
                                         pfc_flags=pfc_flags,
                                         context_id=ctx.context_id,
                                         opnum=4,
diff --git a/selftest/knownfail.d/dcerpc_raw_protocol b/selftest/knownfail.d/dcerpc_raw_protocol
new file mode 100644 (file)
index 0000000..c7cb666
--- /dev/null
@@ -0,0 +1,4 @@
+^samba.tests.dcerpc.raw_protocol.samba.tests.dcerpc.raw_protocol.TestDCERPC_BIND.test_fragmented_requests01
+^samba.tests.dcerpc.raw_protocol.samba.tests.dcerpc.raw_protocol.TestDCERPC_BIND.test_fragmented_requests02
+^samba.tests.dcerpc.raw_protocol.samba.tests.dcerpc.raw_protocol.TestDCERPC_BIND.test_fragmented_requests03
+^samba.tests.dcerpc.raw_protocol.samba.tests.dcerpc.raw_protocol.TestDCERPC_BIND.test_fragmented_requests05