Home / Vulnerability Database / C or C++ : Destruction of std::thread object with an associated thread
C/C++

C or C++ : Destruction of std::thread object with an associated thread

Overview

std::terminate() is called if std::thread object has an associated thread at the moment of destruction.

std::thread object does not have an associated thread and can be safely destroyed in any of the following situations:

  • it was default-constructed
  • it was moved-from
  • either join() or detach() method has been called


References

CRITICAL

DerScanner Severity Score

Do you want to fix C or C++ : Destruction of std::thread object with an associated thread in your application?

See also

C/C++

C or C++ : Dead store

C/C++

C or C++ : Use after free

C/C++

C or C++ : va_list uninitialized