heap-buffer-overflow in mariadb-backup
write of NULL ptr after the end of the allocated buffer
This commit is contained in:
parent
90bd638159
commit
9ddecc2164
@ -218,9 +218,10 @@ void encryption_plugin_prepare_init(int argc, char **argv)
|
||||
opt_plugin_dir[FN_REFLEN - 1] = '\0';
|
||||
}
|
||||
|
||||
char **new_argv = new char *[argc + 1];
|
||||
char **new_argv = new char *[argc + 2];
|
||||
new_argv[0] = XTRABACKUP_EXE;
|
||||
memcpy(&new_argv[1], argv, argc*sizeof(char *));
|
||||
new_argv[argc+1]= 0;
|
||||
|
||||
encryption_plugin_init(argc+1, new_argv);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user