aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-path.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-09-19 14:38:48 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:11 +0100
commita8bebc3bdd41fb86a3b4fa534820456719eaa79f (patch)
tree0406d21a0fca4071fdba642b4f33ccc2da411b3c /gcc/rust/resolve/rust-ast-resolve-path.h
parent506459fac4e1a4a8d8ed68711cf88bddb1bbf601 (diff)
downloadgcc-a8bebc3bdd41fb86a3b4fa534820456719eaa79f.zip
gcc-a8bebc3bdd41fb86a3b4fa534820456719eaa79f.tar.gz
gcc-a8bebc3bdd41fb86a3b4fa534820456719eaa79f.tar.bz2
gccrs: Check if the type has been correctly resolved
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>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions