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

Validate max_vertex_buffers in render bundles #5025

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

nical
Copy link
Contributor

@nical nical commented Jan 9, 2024

Description

We are hitting crashes in CTS runs with out-of-bounds access to the vertex ArrayVec in when producing render bundles. This addresses it by validating the index against limits.max_vertex_buffers.

Testing

Covered by the CTS.

Checklist

  • Run cargo fmt.
  • Run cargo clippy.
  • Run cargo xtask test to run tests.

@nical nical changed the title Validate max_vertex_buffers in render bundles. Validate max_vertex_buffers in render bundles Jan 9, 2024
@nical nical merged commit 1bc71eb into gfx-rs:trunk Jan 9, 2024
27 checks passed
@nical nical deleted the bundle-vtx-slot branch January 9, 2024 14:41
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