From ab36db2f9d2341a5206584e2d74000515f0b08a0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 16 Sep 2007 10:30:31 +0000 Subject: r25186: Fix a memory corruption in base-mangle (This used to be commit 4822b3f0db11059281b33e896250f36e3b3448eb) --- source4/torture/basic/mangle_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/basic') diff --git a/source4/torture/basic/mangle_test.c b/source4/torture/basic/mangle_test.c index 729e2c5c43..dc7bc21a55 100644 --- a/source4/torture/basic/mangle_test.c +++ b/source4/torture/basic/mangle_test.c @@ -144,7 +144,7 @@ static char *gen_name(TALLOC_CTX *mem_ctx) } /* and a medium probability of a common lead string */ - if (random() % 10 == 0) { + if ((len > 5) && (random() % 10 == 0)) { strncpy(p, "ABCDE", 5); } -- cgit