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

Check if the type has been correctly resolved #3171

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

P-E-P
Copy link
Member

@P-E-P P-E-P commented Sep 19, 2024

We did not check the optional was valid, this lead to rogue dereference and undefined behaviors.

We did not check the optional was valid, this lead to rogue dereference
and undefined behaviors.

gcc/rust/ChangeLog:

	* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Add optional
	check.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
@P-E-P P-E-P added this pull request to the merge queue Sep 19, 2024
Merged via the queue into Rust-GCC:master with commit 522576d Sep 19, 2024
11 of 12 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.

1 participant