[Libwebsockets] [libwebsockets] #11: infinite recursion in libwebsocket_service_fd

Trac trac at libwebsockets.org
Sun Feb 10 11:00:33 CET 2013


#11: infinite recursion in libwebsocket_service_fd
------------------------------------+--------------------
  Reporter:  amn                    |      Owner:  agreen
      Type:  defect                 |     Status:  new
  Priority:  major                  |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:
------------------------------------+--------------------

Comment (by amn):

 I tested the patch and there is still a flaw there:

         int listen_socket_fds_index =
 context->lws_lookup[context->listen_service_fd]->position_in_fds_table;

   When called from _ _libwebsocket_client_connect_2,
 context->lws_lookup[context->listen_service_fd] is NULL.

-- 
Ticket URL: <http://libwebsockets.org/trac/ticket/11#comment:3>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list