This pull request addresses the issue found in the convert_C_port_to_py function. The problem occurs when handling generic_port_instance_struct* cport for multiport instances. Currently, this structure is not properly assigned when dealing with multiport instances, which leads to subsequent issues in the function. On line 433, we see the macro FEDERATED_ASSIGN_FIELDS(((generic_port_capsule_struct*)cap), cport), which relies on cport. In the case of multiport, if cport isn't appropriately assigned, this macro won't function correctly, causing segmentation fault.
This pull request addresses the issue found in the
convert_C_port_to_py
function. The problem occurs when handlinggeneric_port_instance_struct* cport
for multiport instances. Currently, this structure is not properly assigned when dealing with multiport instances, which leads to subsequent issues in the function. On line 433, we see the macroFEDERATED_ASSIGN_FIELDS(((generic_port_capsule_struct*)cap), cport)
, which relies on cport. In the case of multiport, if cport isn't appropriately assigned, this macro won't function correctly, causing segmentation fault.