Skip to content

Commit

Permalink
arguments overflow fix proposal. the list is assumed to be implictly …
Browse files Browse the repository at this point in the history
…null terminated at usage time.
  • Loading branch information
devnexen authored and robertbindar committed Mar 9, 2021
1 parent e3a5973 commit 1dff411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/mariabackup/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1dff411

Please sign in to comment.