1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tests:dcerpc/raw_protocol: reproduce call_id truncation bug

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>
This commit is contained in:
Stefan Metzmacher 2018-02-21 00:50:26 +01:00 committed by Ralph Boehme
parent 3a7ebd0e94
commit 65e8edb382
2 changed files with 5 additions and 1 deletions

View File

@ -1974,7 +1974,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
# And now try a request without auth_info # And now try a request without auth_info
# netr_ServerReqChallenge() # netr_ServerReqChallenge()
req = self.generate_request(call_id = 2, req = self.generate_request(call_id = 0x21234,
pfc_flags=pfc_flags, pfc_flags=pfc_flags,
context_id=ctx.context_id, context_id=ctx.context_id,
opnum=4, opnum=4,

View File

@ -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