[Gpg4win-devel] Kleopatra crashes after a couple of service requests.
Frank Osterfeld
frank at kdab.net
Mon Oct 22 16:39:44 CEST 2007
On Monday 22 October 2007 12:17:00 Werner Koch wrote:
> Hi,
>
> the current Kleopatra fails an assertion check in gpgme/w32-wt-io.cpp,
> line 102. This happens after about 20 connections even if no work is
> done (i.e just an GETINFO and NOP).
>
> #define MAX_SLAFD 1024
>
> assert( fd < MAX_SLAFD );
> if (fd < 0 || fd >= MAX_SLAFD)
> return NULL;
>
> Seems that file descriptors are not closed or system handles are used
> (which may have arbitrary values as they are pointers).
Here's a fix better than the first try (which still is in the moderation
queue). It fixes kdpipeiodevice usage outside of gpgme (but should be in
gpgme to keep the versions in sync).
--
Frank Osterfeld -- frank at kdab.net
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-fd-leak2.diff
Type: text/x-diff
Size: 1040 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/gpg4win-devel/attachments/20071022/45c0caaf/fix-fd-leak2.bin
More information about the Gpg4win-devel
mailing list