Skip to content

Conversation

@s-perron
Copy link
Collaborator

In ConvertImageVariableToSampledImage, the result of FindPointerToType is
not checked before being passed to MoveInstructionNextToType. This can
cause a crash if FindPointerToType returns 0.

This CL adds a check to ensure type_id is not 0 before calling
MoveInstructionNextToType. If type_id is 0, the function will return
false.

In ConvertImageVariableToSampledImage, the result of FindPointerToType is
not checked before being passed to MoveInstructionNextToType. This can
cause a crash if FindPointerToType returns 0.

This CL adds a check to ensure type_id is not 0 before calling
MoveInstructionNextToType. If type_id is 0, the function will return
false.
@s-perron s-perron requested a review from luciechoi September 23, 2025 15:23
@s-perron s-perron merged commit 01628d6 into KhronosGroup:main Oct 1, 2025
22 checks passed
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.

2 participants