s4:torture: add tests to test the SMB2 read/write offset/length boundaries
authorStefan Metzmacher <metze@samba.org>
Mon, 11 May 2020 10:37:41 +0000 (12:37 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:43 +0000 (19:53 +0000)
commit54de0e4a3e46a53db5262963e64b109c567554a1
treea16d6b8514e831aba1ad51999f4aaeb1e15241a8
parentbf04ca5658dcf7d7cdf5f718eec0e5e21f9a0d64
s4:torture: add tests to test the SMB2 read/write offset/length boundaries

[MS-FSA] 2.1.5.2 Server Requests a Read and
2.1.5.3 Server Requests a Write define some contraints.

These tests demonstrate that ((int64_t)offset) < 0) is
not allowed for both reads and writes for SMB.
Also the special case for writes at offset -2 is not possible
nor the append mode with offset < 0.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/rw-invalid [new file with mode: 0644]
source4/torture/smb2/read_write.c