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:
a2abc78
)
ctdb-tools: CID 1125617 String not null terminated (STRING_NULL)
author
Martin Schwenke
<martin@meltin.net>
Fri, 2 Sep 2016 01:56:02 +0000
(11:56 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Thu, 8 Sep 2016 04:57:21 +0000
(06:57 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12244
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb.c
patch
|
blob
|
history
diff --git
a/ctdb/tools/ctdb.c
b/ctdb/tools/ctdb.c
index ba9f33222acdf13109ec07d3cdd743140073bfa6..d2f78b82ab3f5d0d4a5d130ce5e5c2e68a1c1cfc 100644
(file)
--- a/
ctdb/tools/ctdb.c
+++ b/
ctdb/tools/ctdb.c
@@
-4413,6
+4413,7
@@
static int control_dumpdbbackup(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
argv[0]);
return ret;
}
+ db_hdr.name[sizeof(db_hdr.name)-1] = '\0';
if (db_hdr.version != DB_VERSION) {
fprintf(stderr,