aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2024-08-08 07:32:39 -0400
committerGitHub <noreply@github.com>2024-08-08 07:32:39 -0400
commit8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2 (patch)
tree006f1a0fbd49d3c5e2e567669c10fa06a5829c0f /clang/lib/Frontend/CompilerInvocation.cpp
parentbde243259b3cc4404a82333a31a5a13c83ec6cb7 (diff)
downloadllvm-8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2.zip
llvm-8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2.tar.gz
llvm-8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2.tar.bz2
Fix a crash with empty escape sequences when lexing (#102339)
The utilities we use for lexing string and character literals can be run in a mode where we pass a null pointer for the diagnostics engine. This mode is used by the format string checkers, for example. However, there were two places that failed to account for a null diagnostic engine pointer: `\o{}` and `\x{}`. This patch adds a check for a null pointer and correctly handles fallback behavior. Fixes #102218
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions