mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
gpgconf: Fix another argv overflow if --homedir is used.
* tools/gpgconf-comp.c (gc_component_check_options): Increase array. -- I missed to fix that one with the last patch. Note that there was no problem in 2.2 at thismlocation - probably because it had been manually backported once. GnuPG-bug-id: 5366 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
d3d57a1bc8
commit
057131159b
@ -1307,7 +1307,7 @@ gc_component_check_options (int component, estream_t out, const char *conf_file)
|
||||
gpg_error_t err;
|
||||
unsigned int result;
|
||||
const char *pgmname;
|
||||
const char *argv[5];
|
||||
const char *argv[6];
|
||||
int i;
|
||||
pid_t pid;
|
||||
int exitcode;
|
||||
@ -1338,7 +1338,8 @@ gc_component_check_options (int component, estream_t out, const char *conf_file)
|
||||
argv[i++] = "--version";
|
||||
else
|
||||
argv[i++] = "--gpgconf-test";
|
||||
argv[i++] = NULL;
|
||||
argv[i] = NULL;
|
||||
log_assert (i < DIM(argv));
|
||||
|
||||
result = 0;
|
||||
errlines = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user