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 array size calculation #5463

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Fix array size calculation #5463

merged 3 commits into from
Nov 2, 2023

Conversation

s-perron
Copy link
Collaborator

@s-perron s-perron commented Nov 1, 2023

The function that get the number of elements in a composite variable
returns an incorrect values for the arrays. This is fixed, so that it
returns the correct number of elements for arrays where the number of
elements is represented as a 32-bit interger and is known at compile
time.

Fixes #4953

The function that get the number of elements in a composite variable
returns an incorrect values for the arrays. This is fixed, so that it
returns the correct number of elements for arrays where the number of
elements is represented as a 32-bit interger and is known at compile
time.

Fixes KhronosGroup#4953
@s-perron s-perron requested a review from sudonatalie November 1, 2023 19:47
source/opt/folding_rules.cpp Outdated Show resolved Hide resolved
@s-perron s-perron enabled auto-merge (squash) November 2, 2023 13:33
@s-perron s-perron merged commit 9e7a1f2 into KhronosGroup:main Nov 2, 2023
@s-perron s-perron deleted the i4953 branch September 16, 2024 13:11
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.

OSS-Fuzz: Stack-buffer-overflow in spvtools::opt::CompositeInsertToCompositeConstruct
2 participants