Finding
Severity: MAJOR
Section: 8
Evidence: src/transport/nats_connection.cpp:23
Principle: SOLID
getenv() is called at connection construction time with a NOLINT suppression for concurrency-mt-unsafe. POSIX specifies getenv() is not thread-safe if another thread modifies the environment concurrently. In a multi-threaded NATS application where connections may be created from worker threads, this is a realistic race condition risk during initialization.
Part of #504
Finding
Severity: MAJOR
Section: 8
Evidence: src/transport/nats_connection.cpp:23
Principle: SOLID
getenv() is called at connection construction time with a NOLINT suppression for concurrency-mt-unsafe. POSIX specifies getenv() is not thread-safe if another thread modifies the environment concurrently. In a multi-threaded NATS application where connections may be created from worker threads, this is a realistic race condition risk during initialization.
Part of #504