1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-16 04:49:24 +00:00

Merge pull request #1067 from philsmd/master

added additional memory leak checks within the rule engine
This commit is contained in:
Jens Steube 2017-02-14 14:23:10 +01:00 committed by GitHub
commit 05230bd7f9
2 changed files with 8 additions and 3 deletions

View File

@ -66,6 +66,7 @@
- Hardware Monitor: Fixed several memory leaks when no hardware monitor sensor is found
- OpenCL Device Management: Fixed several memory leaks when initialization of a device/platform failed
- Outfile Check: Fixed a memory leak for failed outfile reads
- Rule Engine: Fixed several memory leaks when loading of rules failed
- OpenCL Header: Updated CL_* errorcode to OpenCL 1.2 standard
- OpenCL Runtime: Updated AMDGPU-Pro driver version check, do warn if version 16.60 is detected which is known to be broken
- OpenCL Kernel: Renumbered hash-mode 7600 to 4521

View File

@ -735,6 +735,8 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32
{
event_log_error (hashcat_ctx, "%s: %s", rp_file, strerror (errno));
hcfree (rule_buf);
return -1;
}
@ -835,16 +837,18 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32
hcfree (repeats);
hcfree (all_kernel_rules_cnt);
hcfree (all_kernel_rules_buf);
if (kernel_rules_cnt == 0)
{
event_log_error (hashcat_ctx, "No valid rules left");
hcfree (kernel_rules_buf);
return -1;
}
hcfree (all_kernel_rules_cnt);
hcfree (all_kernel_rules_buf);
*out_cnt = kernel_rules_cnt;
*out_buf = kernel_rules_buf;