git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed457e0
)
Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV)
author
SASAJIMA Toshihiro
<sasajima_t@jp.fujitsu.com>
Wed, 13 Jan 2010 05:43:23 +0000
(21:43 -0800)
committer
Jeremy Allison
<jra@samba.org>
Wed, 13 Jan 2010 05:43:23 +0000
(21:43 -0800)
source3/modules/vfs_cap.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_cap.c
b/source3/modules/vfs_cap.c
index 7edbb8783c74fd4ee04290ae6a6e0dfe87c73cab..35fa740dd09aa078cfe78e83196c1623683f041f 100644
(file)
--- a/
source3/modules/vfs_cap.c
+++ b/
source3/modules/vfs_cap.c
@@
-695,12
+695,13
@@
static char *capdecode(TALLOC_CTX *ctx, const char *from)
size_t len = 0;
for (p1 = from; *p1; len++) {
- if (is_hex(
from
)) {
+ if (is_hex(
p1
)) {
p1 += 3;
} else {
p1++;
}
}
+ len++;
to = TALLOC_ARRAY(ctx, char, len);
if (!to) {