cpp
Audited by Socket on Sep 12, 2026
2 alerts found:
AnomalySecurityNo evidence of malicious behavior or supply-chain malware is present. The code contains a significant coroutine lifetime bug: the temporary lambda's captured report may be accessed after the closure has been destroyed, producing use-after-lifetime undefined behavior during scheduler.drain(). The implementation should use a named coroutine function or otherwise ensure captured state is stored safely in the coroutine frame. The referenced output vector must also outlive all queued tasks.
The code is not malicious, but it contains a serious lifetime bug: deferred callbacks use dangling std::string_view objects. The program has undefined behavior and may produce corrupted output or fail unpredictably. The callbacks should capture owning std::string values or otherwise ensure the referenced storage remains alive and stable.