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

gccrs: Fix ICE accessing empty vector without check #2828

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

philberty
Copy link
Member

Fixes #2747

gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args): fix

gcc/testsuite/ChangeLog:

* rust/compile/issue-2747.rs: New test.

Fixes #2747

gcc/rust/ChangeLog:

	* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args): fix

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2747.rs: New test.
@philberty philberty self-assigned this Feb 3, 2024
@philberty philberty added the bug label Feb 3, 2024
@philberty philberty added this pull request to the merge queue Feb 3, 2024
Merged via the queue into master with commit d6c97f6 Feb 4, 2024
9 checks passed
@philberty philberty deleted the phil/subst-segv branch February 4, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Out of bounds for generic arguments causes segfault
1 participant