Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If an exception occurs while a mutex is locked, deadlock may result.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

CON51-CPP

Low

Probable

Low

P6

L2

Automated Detection

Tool

Version

Checker

Description

PRQA QA-
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V

CONCURRENCY.LOCK.NOUNLOCK

Missing Lock Release

Helix QAC

Include Page
Helix QAC_V
Helix QAC_V

C++
Include Page
5018
Parasoft C/
PRQA QA-
C++test

Include Page
Parasoft_V

PRQA QA-C++_V5018 

Parasoft_V

CERT_CPP-CON51-aDo not call lock() directly on a mutex
Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

CERT C++: CON51-CPPChecks for lock possibly not released on exception (rule fully covered)

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...

This rule is a subset of ERR56-CPP. Guarantee exception safety.

Bibliography

[ISO/IEC 14882-2014]Subclause 30.4.2, "Locks"

...


...