Fraunhofer-IIS / libjapi

libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.
MIT License
3 stars 1 forks source link

Japi_pushsrv_destroy is not cleaning ctx->push_service element #43

Closed fraunhofer-iis-bot closed 1 year ago

fraunhofer-iis-bot commented 1 year ago

In GitLab by @bmi on Mar 29, 2023, 11:29

Trying to delete a japi_pushsrv_destroy at runtime is not cleaning the linked list in the ctx->push_service element

This result is a sigseg if you try to read a japi_pushsrv_list after the destroy command becouse the pointer of the push_service is deletet but the linked list entry is still existing.

Solution: Find and delete linked list element in the ctx->push_service pointer.

fraunhofer-iis-bot commented 1 year ago

In GitLab by @vornkat-iis on Apr 27, 2023, 11:13

Possible duplicate of #37

@bmi, which release did you use when you had that error?

fraunhofer-iis-bot commented 1 year ago

In GitLab by @bmi on May 2, 2023, 08:55

i have used the Tag v0.3.2

fraunhofer-iis-bot commented 1 year ago

In GitLab by @vornkat-iis on Jun 30, 2023, 15:17

created branch 43-japi_pushsrv_destroy-is-not-cleaning-ctx-push_service-element to address this issue