diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-09 10:47:15 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-04-06 10:47:23 +0200 |
commit | b56d093e95221cd2d95b3c030f6102378eeffe69 (patch) | |
tree | f2db1034d1aa7691fc8c069a25e778b6891ecb61 /gcc/rust/resolve | |
parent | e81f5be60d1ff504f9b1b2c5cfad0a808bec4ff7 (diff) | |
download | gcc-b56d093e95221cd2d95b3c030f6102378eeffe69.zip gcc-b56d093e95221cd2d95b3c030f6102378eeffe69.tar.gz gcc-b56d093e95221cd2d95b3c030f6102378eeffe69.tar.bz2 |
gccrs: lex: Prevent directories in RAIIFile
RAIIFile constructor was accepting directory filename. This lead to
unattended directory opening in some part of the code (load_file_bytes)
wich resulted in ice. Since RAIIFile are used for the lexer, removing
the ability to open directories with RAIIFile fixes those issues and
prevent future mistakes.
gcc/rust/ChangeLog:
* lex/rust-lex.h: Add file type check.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions