]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Prevent invalid iterator dereference
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 17 Jun 2023 04:32:38 +0000 (00:32 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:46:28 +0000 (18:46 +0100)
commit45c01fae2a2afb30b0ca933e9d7b807acb167d23
treea70c0e059462ed1f79e05c3cfc073d55814e1f8e
parent99894a81392fb83aa8886884f70d76b24f048c45
gccrs: Prevent invalid iterator dereference

gcc/rust/ChangeLog:

* lex/rust-lex.cc
(Lexer::classify_keyword): Check if iterator is valid before dereferencing.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/lex/rust-lex.cc