mirror of
https://github.com/hashcat/hashcat
synced 2024-11-24 14:27:14 +01:00
Restore: Add some checks on the rd->cwd variable in restore case
This commit is contained in:
parent
b2dbd22979
commit
4b3d39623c
@ -74,6 +74,7 @@
|
||||
- OpenCL Kernel: Move kernel binary buffer from heap to stack memory
|
||||
- OpenCL Kernel: Refactored read_kernel_binary to load only a single kernel for a single device
|
||||
- Outfile Check: Fixed a memory leak for failed outfile reads
|
||||
- Restore: Add some checks on the rd->cwd variable in restore case
|
||||
- Rule Engine: Fixed several memory leaks in case loading of rules failed
|
||||
- Session Management: Fixed several memory leaks in case profile- or install-folder setup failed
|
||||
- OpenCL Header: Updated CL_* errorcode to OpenCL 1.2 standard
|
||||
|
@ -97,6 +97,20 @@ static int read_restore (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
fclose (fp);
|
||||
|
||||
if (hc_path_exist (rd->cwd) == false)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "%s: %s", rd->cwd, strerror (errno));
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (hc_path_is_directory (rd->cwd) == false)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "%s: %s", rd->cwd, strerror (errno));
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
event_log_warning (hashcat_ctx, "Changing current working directory to '%s'", rd->cwd);
|
||||
event_log_warning (hashcat_ctx, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user