s4:torture/smb2: add smb2.read.bug14607 test
commit570b3ced84ae14a5e3a0f4b89bc8f2944683d6e1
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Jul 2021 14:24:59 +0000 (6 16:24 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 21 Jul 2021 09:37:15 +0000 (21 09:37 +0000)
tree6004f8d7ab152636ec7914cfd861a8c86899b3ba
parent81eeb1c6708bbe0e26e6e683073f46dfe69eb4a5
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>
(cherry picked from commit b3c9823d907b91632679e6f0ffce1b7192e4b9b6)
libcli/smb/smb_constants.h
source4/torture/smb2/read.c