mirror of
https://github.com/MariaDB/server.git
synced 2026-05-11 01:20:15 +02:00
arguments overflow fix proposal. the list is assumed to be implictly null terminated at usage time.
This commit is contained in:
parent
e3a597378e
commit
1dff411e84
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue