From 19b4fb22a6c62d0f616c5a914f1510ae15677249 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 2 Sep 2016 11:56:02 +1000 Subject: [PATCH] ctdb-tools: CID 1125617 String not null terminated (STRING_NULL) BUG: https://bugzilla.samba.org/show_bug.cgi?id=12244 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tools/ctdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index ba9f33222acd..d2f78b82ab3f 100644 --- 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, -- 2.34.1