aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorEndre Fülöp <endre.fulop@sigmatechnology.com>2025-10-15 17:16:30 +0200
committerGitHub <noreply@github.com>2025-10-15 17:16:30 +0200
commit7d3729d381a0d6d091e4f4929b9a5f06f6cba906 (patch)
tree6d5669f8e1708a15cd69252176080eab2879ddbb /clang/lib/Frontend/CompilerInvocation.cpp
parent479e118a33ac80b6bc2227bdc6b17b2f232ebccd (diff)
downloadllvm-7d3729d381a0d6d091e4f4929b9a5f06f6cba906.zip
llvm-7d3729d381a0d6d091e4f4929b9a5f06f6cba906.tar.gz
llvm-7d3729d381a0d6d091e4f4929b9a5f06f6cba906.tar.bz2
[clang-tidy] Fix crash in bugprone-not-null-terminated-result check (#160727)
The check was crashing when trying to evaluate value-dependent expressions using EvaluateAsInt() in cases where the src parameter of memcpy is value-dependent, but the length is not. Added isValueDependent() check before EvaluateAsInt() call to prevent the crash.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions