Commit 1dff411e authored by David CARLIER's avatar David CARLIER Committed by Robert Bindar

arguments overflow fix proposal. the list is assumed to be implictly null terminated at usage time.

parent e3a59737
......@@ -6451,8 +6451,9 @@ void handle_options(int argc, char **argv, char ***argv_server,
}
}
mariabackup_args.push_back(nullptr);
*argv_client= *argv_server= *argv_backup= &mariabackup_args[0];
int argc_backup= static_cast<int>(mariabackup_args.size());
int argc_backup= static_cast<int>(mariabackup_args.size() - 1);
int argc_client= argc_backup;
int argc_server= argc_backup;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment