Opened 5 years ago
Last modified 5 years ago
#12068 new Bug report
Event Handle Leak Bugfix submission for winsftp.c (in fzsftp.exe)
Reported by: | Tobias Giesen | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Cc: | ||
Component version: | Operating system type: | Windows | |
Operating system version: |
Description
Hello,
when downloading a larger file, fzsftp.exe creates hundreds and thousands
of Windows events.
Here's the simple fix for the do_select function, around line 545 of
winsftp.c:
(netevent==INVALID_HANDLE_VALUE)) |
netevent = CreateEvent(NULL, false, false, NULL);
I have submitted this fix to the PuTTY project also, but I am unsure if they will read my email.
Attachments (2)
Change History (9)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
I got a reply from PuTTY team with an alternate fix which I'm testing now.
comment:4 by , 5 years ago
Status: | new → moreinfo |
---|
That's an interesting bug. Something changed in PuTTY a while ago that causes this bug to be triggered, yet it has existed unnoticed for quite some time.
Would you mind sharing the fix the PuTTY team has in mind?
by , 5 years ago
Attachment: | 0001-Stop-spuriously-setting-startup-flag-when-calling-do.patch added |
---|
Patch from the PuTTY Project
comment:6 by , 5 years ago
Hello,
after some testing, I prefer my original fix. The other patch seems to be preventing downloads from starting. I think my fix will be good enough for the moment.
by , 5 years ago
Attachment: | 0001-winsftp.c-avoid-creating-multiple-netevents.patch added |
---|
Final (Correted)Patch from the PuTTY Project
comment:7 by , 5 years ago
Hello,
I received a corrected patch from the PuTTY team, which works fine. I have attached it here (the second attachment).
The source code was apparently broken by pasting, please add the logical OR operator where appropriate.