diff options
author | Volker Lendecke <vl@samba.org> | 2014-11-27 21:44:18 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-09 19:43:31 +0100 |
commit | 8c569893250f87baf2c0b887c0dea076ca8249cf (patch) | |
tree | 47ad757f6f87af14bb60852a625576347d67dd6f /source4/torture/raw | |
parent | 9bb0728f7c71cf72e31ac15c74912479a803f323 (diff) | |
download | samba-8c569893250f87baf2c0b887c0dea076ca8249cf.tar.gz |
torture: Fix raw.open.chained-ntcreatex
sizeof(buf) is 5. On FreeBSD10/clang this overwrites "ret". Not good.
Same as 574750777a
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 9 19:43:31 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 616ba5c16ef..d1c09bc2477 100644 --- a/source4/torture/raw/open.c +++ b/source4/torture/raw/open.c @@ -1722,8 +1722,8 @@ static bool test_chained_ntcreatex_readx(struct torture_context *tctx, struct sm /* readx parameters */ io.ntcreatexreadx.in.offset = 0; - io.ntcreatexreadx.in.mincnt = sizeof(buf); - io.ntcreatexreadx.in.maxcnt = sizeof(buf); + io.ntcreatexreadx.in.mincnt = sizeof(buf2); + io.ntcreatexreadx.in.maxcnt = sizeof(buf2); io.ntcreatexreadx.in.remaining = 0; io.ntcreatexreadx.out.data = (uint8_t *)buf2; |