git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e37688
)
r25186: Fix a memory corruption in base-mangle
author
Volker Lendecke
<vlendec@samba.org>
Sun, 16 Sep 2007 10:30:31 +0000
(10:30 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 20:06:47 +0000
(15:06 -0500)
(This used to be commit
4822b3f0db11059281b33e896250f36e3b3448eb
)
source4/torture/basic/mangle_test.c
patch
|
blob
|
history
diff --git
a/source4/torture/basic/mangle_test.c
b/source4/torture/basic/mangle_test.c
index 729e2c5c43639b6e5ca14d4325bcdf1ab804e333..dc7bc21a5586f4ee6f577de92d1c226b31516d48 100644
(file)
--- 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);
}