...
Incorrectly using threads that asynchronously cancel may result in silent corruption, resource leaks, and, in the worst case, unpredictable interactions.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
POS47-C | Medium | Probable | No | LowNo | P12P4 | L1L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| bad-macro-use bad-macro-expansion | Supported | ||||||||||
| Axivion Bauhaus Suite |
| CertC-POS47 | |||||||||||
| Helix QAC |
| C5035 | |||||||||||
| Klocwork |
| CERT.POS.THREAD.ASYNC_CANCEL | |||||||||||
| Parasoft C/C++test |
| CERT_C-POS47-a | The function 'pthread_setcanceltype()' should not be called with 'PTHREAD_CANCEL_ASYNCHRONOUS' argument | ||||||||||
| PC-lint Plus |
| 586 | Fully supported | ||||||||||
| Polyspace Bug Finder |
| CERT C: Rule POS47-C | Checks for asynchronously cancellable thread (rule fully covered) | PRQA QA-C||||||||||
| RuleChecker |
| PRQA QA-C_v |
| bad-macro-use bad-macro-expansion | Supported | PRQA QA-C_v | 5035
Bibliography
Related Vulnerabilities
...