[RTEMS Project] #4913: libbsd/ipsec-tools: Problems with more than 64 open files

RTEMS trac trac at rtems.org
Wed May 31 06:01:36 UTC 2023

#4913: libbsd/ipsec-tools: Problems with more than 64 open files
 Reporter:  Christian Mauderer  |       Owner:  Christian Mauderer
     Type:  defect              |      Status:  assigned
 Priority:  normal              |   Milestone:  6.1
Component:  network/libbsd      |     Version:  6
 Severity:  normal              |  Resolution:
 Keywords:                      |  Blocked By:
 Blocking:                      |

Comment (by Christian Mauderer <christian.mauderer@…>):

 In [changeset:"dfb21446417ba93240d018bebe84a51601ba2df5/rtems-libbsd"
 #!CommitTicketReference repository="rtems-libbsd"
 ipsec-tools: Fix copying fd_set prior to select

 The racoon session code copies an fd_set from one variable into another
 prior to calling select. That works well for simple structures.

 In libbsd we have to allocate fd_sets instead of using fixed structures
 to avoid a problem with file numbers bigger than FD_SETSIZE. The simple
 assignment didn't work in that case.

 This patch makes sure that a memcpy is used instead.

 Update #4913

Ticket URL: <http://devel.rtems.org/ticket/4913#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list