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

c11_atomics: fix uninitialized member accesses #1819

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Sep 25, 2023

Initialize the _memoryOrder and _memoryScope members to avoid CBasicTestMemOrderScope::MaxHostThreads() accessing uninitialized data.

Initialize the `_memoryOrder` and `_memoryScope` members to avoid
`CBasicTestMemOrderScope::MaxHostThreads()` accessing uninitialized
data.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
@bashbaug
Copy link
Contributor

bashbaug commented Nov 7, 2023

Merging as discussed in the November 7th teleconference.

@bashbaug bashbaug merged commit 42434d0 into KhronosGroup:main Nov 7, 2023
6 checks passed
@svenvh svenvh deleted the c11-uninit-data branch November 8, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants