mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 09:10:13 +08:00
* src/main.c (promt_for_password): Avoid getpass() when fuzzing
This commit is contained in:
parent
3ceb6e5630
commit
fbb4cd231e
@ -1072,7 +1072,12 @@ prompt_for_password (void)
|
|||||||
fprintf (stderr, _("Password for user %s: "), quote (opt.user));
|
fprintf (stderr, _("Password for user %s: "), quote (opt.user));
|
||||||
else
|
else
|
||||||
fprintf (stderr, _("Password: "));
|
fprintf (stderr, _("Password: "));
|
||||||
|
#ifndef TESTING
|
||||||
|
/* gnulib's getpass() uses static variables internally, bad for fuzing */
|
||||||
return getpass("");
|
return getpass("");
|
||||||
|
#else
|
||||||
|
return xstrdup("");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user