[all-commits] [llvm/llvm-project] 112291: [clang][lex] Fix lexing malformed pragma within in...
Stefan Weigl-Bosker via All-commits
all-commits at lists.llvm.org
Mon May 5 04:30:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 112291ad35a9b83501ff0f9e89de494d2df17b3c
https://github.com/llvm/llvm-project/commit/112291ad35a9b83501ff0f9e89de494d2df17b3c
Author: Stefan Weigl-Bosker <stefan at s00.xyz>
Date: 2025-05-05 (Mon, 05 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Lex/Pragma.cpp
A clang/test/Preprocessor/_Pragma-in-include.c
Log Message:
-----------
[clang][lex] Fix lexing malformed pragma within include directive (#138165)
this patch fixes a crash triggered by lexing past eof when emitting a
diagnostic for a malformed `_Pragma` directive within an `include`
directive.
Fixed by by preventing the lexer from eating a `tok::eod`.
Fixes #138094
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list