Fixed a bug where hashcat reported an invalid password for a zero-length password...
[hashcat.git] / OpenCL / inc_comp_single_bs.cl
index 2c5e70f..92383d6 100644 (file)
@@ -1,6 +1,10 @@
-const u32 final_hash_pos = digests_offset + 0;
 
-if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
+if ((il_pos + slice) < il_cnt)
 {
-  mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos + slice);
+  const u32 final_hash_pos = digests_offset + 0;
+
+  if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
+  {
+    mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos + slice);
+  }
 }