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 -1
View File
@@ -296,7 +296,7 @@ KERNEL_FQ void m20500_sxx (KERN_ATTR_VECTOR ())
u32 prep1 = digests_buf[DIGESTS_OFFSET].digest_buf[1];
u32 prep2 = digests_buf[DIGESTS_OFFSET].digest_buf[2];
for (u32 pos = pw_len - 1; pos >= 4; pos--)
for (int pos = pw_len - 1; pos >= 4; pos--)
{
const u32 t = hc_bfe_S (pws[gid].i[pos / 4], (pos & 3) * 8, 8);