diff options
author | Volker Lendecke <vl@samba.org> | 2014-11-27 21:44:18 +0100 |
---|---|---|
committer | Ralph Böhme <slow@samba.org> | 2014-11-28 13:30:18 +0100 |
commit | 574750777ad47d733a45a72e7da83297e3faa897 (patch) | |
tree | 9ef5e3478d7676ef248831cc3b3a74a62cbe6bcd /source4/torture/raw | |
parent | 3121d6adea90dbeb6ae1148b93db442387ec8cfb (diff) | |
download | samba-574750777ad47d733a45a72e7da83297e3faa897.tar.gz |
torture: Fix raw.open.chained-openx
sizeof(buf) is 5. On FreeBSD10/clang this overwrites "ret". Not good.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Nov 28 13:30:18 CET 2014 on sn-devel-104
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c index 679a7c24f7e..616ba5c16ef 100644 --- a/source4/torture/raw/open.c +++ b/source4/torture/raw/open.c @@ -1386,8 +1386,8 @@ static bool test_chained(struct torture_context *tctx, struct smbcli_state *cli) io.openxreadx.in.timeout = 0; io.openxreadx.in.offset = 0; - io.openxreadx.in.mincnt = sizeof(buf); - io.openxreadx.in.maxcnt = sizeof(buf); + io.openxreadx.in.mincnt = sizeof(buf2); + io.openxreadx.in.maxcnt = sizeof(buf2); io.openxreadx.in.remaining = 0; io.openxreadx.out.data = (uint8_t *)buf2; |