You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
in PfRingDevice.cpp file, has a functio named PfRingDevice::startCaptureMultiThread.
When this function executes to cond.notify_all() and then exits the function. However, since variables like cond are passed to the thread above in the form of pointers to be called in another thread, if this function finishes executing before the thread, cond may become an invalid pointer.
Bug description
Describe the bug
in PfRingDevice.cpp file, has a functio named PfRingDevice::startCaptureMultiThread.
When this function executes to cond.notify_all() and then exits the function. However, since variables like cond are passed to the thread above in the form of pointers to be called in another thread, if this function finishes executing before the thread, cond may become an invalid pointer.
Code example to reproduce
Expected behavior
Perhaps the logic should be changed to pass in shared_ptr objects, promise objects, or implement other safe control logic?
PcapPlusPlus versions tested on
v23.09
Other PcapPlusPlus version (if applicable)
No response
Operating systems tested on
Linux
Other operation systems (if applicable)
No response
Compiler version
clang 18
Packet capture backend (if applicable)
No response
The text was updated successfully, but these errors were encountered: