Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible race condition in user-defined thread-safety mechanism #262

Merged
merged 5 commits into from
Apr 14, 2022

Conversation

LukasBreitwieser
Copy link
Member

In the critical region, disallow duplicates and null pointers.
This can happen, because a call to Agent::CriticalRegion is not protected.
Therefore, another thread can change it before the locks are acquired.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

92.6% 92.6% Coverage
0.0% 0.0% Duplication

@LukasBreitwieser LukasBreitwieser merged commit 72ea934 into master Apr 14, 2022
@LukasBreitwieser LukasBreitwieser deleted the ts branch April 14, 2022 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant