[PATCH] torture: Fix raw.open.chained-ntcreatex
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Dec 9 02:38:40 MST 2014
Hi!
I'd appreciate review&push!
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 80f3724989b6d221827f0deb72e285dfc32d7c3c Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Thu, 27 Nov 2014 21:44:18 +0100
Subject: [PATCH] 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 at samba.org>
---
source4/torture/raw/open.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c
index 616ba5c..d1c09bc 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;
--
2.1.2
More information about the samba-technical
mailing list