diff options
| author | Endre Fülöp <endre.fulop@sigmatechnology.com> | 2025-10-15 17:16:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 17:16:30 +0200 |
| commit | 7d3729d381a0d6d091e4f4929b9a5f06f6cba906 (patch) | |
| tree | 6d5669f8e1708a15cd69252176080eab2879ddbb /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | 479e118a33ac80b6bc2227bdc6b17b2f232ebccd (diff) | |
| download | llvm-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
