mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
This prevents a couple of different possible crashes if a PPK file constructed by something other than PuTTYgen contains invalid parameters. If parallelism is 0 then the Argon2 code can divide by zero; if the memory requirement is too small for the parallelism then it can overrun a buffer. Signed-off-by: Martin Prikryl <martin@winscp.net> Source commit: e66db8e4bd600fd9d92467fb8b6cc31cd86fc0ad