kwprocessor on Windows - Truncated/Missing Results
It seems like the results for kwprocessor on Windows are either truncated or missing completely (truncated to 0). The exact same commands being run on the same system via Bash for Windows (Linux subsystem) show the expected results.
The following screenshot might give a better idea. Exactly the same commands, but the one on top is using Bash on Windows to run kwp, the bottom is using kwp32.exe (same results encountered with kwp64.exe). The first command (2-to-10-max-3) returned ~40,000 rows when running under "linux", but only 511 rows on Windows. The second command (4-to-4-exhaustive) returns 1,780 rows on linux, 0 on Windows.
https://i.imgur.com/emzaexD.png
This occurred both on the 1.0 release (24 Oct, kwprocessor v1.0 - https://github.com/hashcat/kwprocessor/releases), as well as the beta version (kwprocessor-1.00+6.7z 09-Sep-2016 15:33) which was tested per atom's suggestion in the forums (https://hashcat.net/forum/thread-6956-post-37110.html#pid37110)
System: Windows 10 version 1607 and WSL version Ubuntu 14.04.5 LTS
If you allow me to add, on Windows 10 version 1709 it crashes exactly at line 511. See ya.
I can confirm this issue on Windows 10 20H2 with the most recent GitHub version.
in kwp.c line 544 replace to:
const short c = cs->map[m_distance][m_modifier][m_direction];