svn commit: samba r25186 - in
branches/SAMBA_4_0/source/torture/basic: .
vlendec at samba.org
vlendec at samba.org
Sun Sep 16 10:30:32 GMT 2007
Author: vlendec
Date: 2007-09-16 10:30:31 +0000 (Sun, 16 Sep 2007)
New Revision: 25186
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25186
Log:
Fix a memory corruption in base-mangle
Modified:
branches/SAMBA_4_0/source/torture/basic/mangle_test.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/mangle_test.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/mangle_test.c 2007-09-15 23:03:34 UTC (rev 25185)
+++ branches/SAMBA_4_0/source/torture/basic/mangle_test.c 2007-09-16 10:30:31 UTC (rev 25186)
@@ -144,7 +144,7 @@
}
/* and a medium probability of a common lead string */
- if (random() % 10 == 0) {
+ if ((len > 5) && (random() % 10 == 0)) {
strncpy(p, "ABCDE", 5);
}
More information about the samba-cvs
mailing list