mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 08:10:59 +00:00
Merge pull request #1110 from hashcat/revert-1109-master
Revert "tainted string: maybe strdup () helps us out"
This commit is contained in:
commit
a07875e25d
@ -256,10 +256,6 @@ void setup_environment_variables ()
|
||||
|
||||
if (compute)
|
||||
{
|
||||
// fix for coverity "TAINTED_STRING" issue (using the environment variable directly could be "dangerous")
|
||||
|
||||
compute = strdup (compute);
|
||||
|
||||
static char display[100];
|
||||
|
||||
u32 compute_len_max = sizeof (display);
|
||||
@ -277,8 +273,6 @@ void setup_environment_variables ()
|
||||
putenv (display);
|
||||
}
|
||||
}
|
||||
|
||||
free (compute);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user