Description
HandleHelper.cs lines 61–62 call ReadToEnd() and WaitForExit() without a timeout on the handle.exe process.
Code
string output = process.StandardOutput.ReadToEnd();
process.WaitForExit(); // infinite wait
Scenario
handle.exe hangs due to antivirus interference, NAS delay, or a locked file system → the calling method blocks forever.
Suggested Fix
if (!process.WaitForExit(5000))
{
process.Kill();
throw new TimeoutException("handle.exe did not respond within 5 seconds");
}
Description
HandleHelper.cslines 61–62 callReadToEnd()andWaitForExit()without a timeout on thehandle.exeprocess.Code
Scenario
handle.exehangs due to antivirus interference, NAS delay, or a locked file system → the calling method blocks forever.Suggested Fix