Fixed out-of-boundary read in PKZIP masterkey kernel if the password candidate has length zero.

Now that kernel threads are no longer fixed over the entire session, hardware_power and hardware_power_all
needs to be updated the same way as kernel_power and kernel_power_all for each call to inner2_loop().
This commit is contained in:
Jens Steube
2021-08-17 17:38:45 +02:00
parent 49117745cf
commit 9254603960
7 changed files with 28 additions and 25 deletions
+1
View File
@@ -1242,6 +1242,7 @@ typedef struct hc_device_param
u32 kernel_loops_min_sav; // the _sav are required because each -i iteration
u32 kernel_loops_max_sav; // needs to recalculate the kernel_loops_min/max based on the current amplifier count
u32 kernel_threads;
u32 kernel_threads_prev;
u32 kernel_threads_min;
u32 kernel_threads_max;