svn commit: samba r21948 - in branches: SAMBA_3_0/source/torture
SAMBA_3_0_25/source/torture
jra at samba.org
jra at samba.org
Fri Mar 23 19:12:08 GMT 2007
Author: jra
Date: 2007-03-23 19:12:08 +0000 (Fri, 23 Mar 2007)
New Revision: 21948
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21948
Log:
Fix valgrind error in build farm samba3 smbtorture. We were
using an uninitialized buffer for read/write tests.
Jeremy.
Modified:
branches/SAMBA_3_0/source/torture/torture.c
branches/SAMBA_3_0_25/source/torture/torture.c
Changeset:
Modified: branches/SAMBA_3_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_3_0/source/torture/torture.c 2007-03-23 17:00:00 UTC (rev 21947)
+++ branches/SAMBA_3_0/source/torture/torture.c 2007-03-23 19:12:08 UTC (rev 21948)
@@ -369,6 +369,8 @@
char buf[1024];
BOOL correct = True;
+ memset(buf, '\0', sizeof(buf));
+
fnum2 = cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL,
DENY_NONE);
if (fnum2 == -1)
Modified: branches/SAMBA_3_0_25/source/torture/torture.c
===================================================================
--- branches/SAMBA_3_0_25/source/torture/torture.c 2007-03-23 17:00:00 UTC (rev 21947)
+++ branches/SAMBA_3_0_25/source/torture/torture.c 2007-03-23 19:12:08 UTC (rev 21948)
@@ -369,6 +369,8 @@
char buf[1024];
BOOL correct = True;
+ memset(buf, '\0', sizeof(buf));
+
fnum2 = cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL,
DENY_NONE);
if (fnum2 == -1)
More information about the samba-cvs
mailing list