s4:torture/smb2: add smb2.read.bug14607 test
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Jul 2021 14:24:59 +0000 (16:24 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 15 Jul 2021 23:04:34 +0000 (23:04 +0000)
commitb3c9823d907b91632679e6f0ffce1b7192e4b9b6
tree4f0ed3dec7ea20766053c78ac4b01de84e814468
parentf813f8a54ae79dd74a99593aeacb252061688807
s4:torture/smb2: add smb2.read.bug14607 test

This test will use a FSCTL_SMBTORTURE_GLOBAL_READ_RESPONSE_BODY_PADDING8
in order to change the server behavior of READ responses regarding
the data offset.

It will demonstrate the problem in smb2cli_read*() triggered
by NetApp Ontap servers.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb_constants.h
source4/torture/smb2/read.c