mirror of
https://github.com/mirror/wget.git
synced 2025-02-07 02:00:07 +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));
|
||||
else
|
||||
fprintf (stderr, _("Password: "));
|
||||
#ifndef TESTING
|
||||
/* gnulib's getpass() uses static variables internally, bad for fuzing */
|
||||
return getpass("");
|
||||
#else
|
||||
return xstrdup("");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user