[Gpg4win-devel] Kleopatra crashes after a couple of service requests.

Frank Osterfeld frank at kdab.net
Mon Oct 22 15:29:36 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).

fds were leaked, the attached patch fixes that.
 
>
> Salam-Shalom,
>
>    Werner

Regards,

-- 
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-leak.diff
Type: text/x-diff
Size: 389 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/gpg4win-devel/attachments/20071022/c4434af7/fix-fd-leak.bin


More information about the Gpg4win-devel mailing list