[Libevent-users] [PATCH] Fix problems in evport.c

Nick Mathewson nickm at freehaven.net
Sat Sep 15 14:47:03 EDT 2007


On Wed, Sep 12, 2007 at 10:23:52AM +0200, Trond Norbye wrote:
> This patch fix two problems with evport.c on Solaris:
> 
> 1. The grow-function reallocates the ed_fds array, but ed_pending array 
> may contain pointers to the elements in the ed_fds array. These pointers 
> must be relocated to avoid using freed memory.
> 
> 2. evport_dispatch does not handle a NULL-timval-pinter (no time-based 
> events are active, wait for I/O).

Thanks!  I've applied this to trunk and to the 1.3 branch.

yrs,
-- 
Nick Mathewson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070915/e26de9eb/attachment.bin


More information about the Libevent-users mailing list