eclipse-cyclonedds / cyclonedds

Eclipse Cyclone DDS project
https://projects.eclipse.org/projects/iot.cyclonedds
Other
799 stars 349 forks source link

Add missing ddsrt_mutex_lock in gcreq_queue_step #1996

Closed eboasson closed 1 month ago

eboasson commented 1 month ago

This fixes unlocked access and unlocking a non-locked mutex when the current head of the GC queue is to be postponed.

Note that the "step" function is currently only used in a fuzzer and that this case cannot occur in a single-threaded processes.