Skip to content

Fix logging

Zhao Zhili requested to merge quink/librist:fix-logging into master

Fix #98 (closed)

  1. volatile doesn't guarantee thread-safe, and there are time-of-check to time-of-use issue
  2. 0 is valid file descriptor value
  3. rist_get_global_logging_settings() has the TOCTOU problem
  4. use PTHREAD_MUTEX_INITIALIZER when available to avoid the overhead of pthread_once()
  5. fix memory leaks in error path
Edited by Zhao Zhili

Merge request reports

Loading