mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-25 16:08:18 +00:00
Revert "tainted string: maybe strdup () helps us out"
This commit is contained in:
parent
ad24f5d2ed
commit
899b120316
@ -256,10 +256,6 @@ void setup_environment_variables ()
|
|||||||
|
|
||||||
if (compute)
|
if (compute)
|
||||||
{
|
{
|
||||||
// fix for coverity "TAINTED_STRING" issue (using the environment variable directly could be "dangerous")
|
|
||||||
|
|
||||||
compute = strdup (compute);
|
|
||||||
|
|
||||||
static char display[100];
|
static char display[100];
|
||||||
|
|
||||||
u32 compute_len_max = sizeof (display);
|
u32 compute_len_max = sizeof (display);
|
||||||
@ -277,8 +273,6 @@ void setup_environment_variables ()
|
|||||||
putenv (display);
|
putenv (display);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free (compute);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user