Weakness (CWE)
CWE-663: Use of a Non-reentrant Function in a Concurrent Context
Base Draft
The product calls a non-reentrant function in a concurrent context in which a competing code sequence (e.g. thread or signal handler) may have an opportunity to call the same function or otherwise influence its state.
How to prevent it (3 mitigations)
-
Implementation
Use reentrant functions if available.
-
Implementation
Add synchronization to your non-reentrant function.
-
Implementation
In Java, use the ReentrantLock Class.
Source: MITRE CWE-663
0 results · Clear filters · Feed
Nothing found.