diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2025-03-20 08:17:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 08:17:11 -0700 |
commit | cebc4a167c518d83bb95fddd1c0dd6eebed3d505 (patch) | |
tree | d6c43b175cc999080997f8b4b1c89d2d33caeee1 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 392b8f3e6353a1bcb980b73491a26cd5d04020bd (diff) | |
download | llvm-cebc4a167c518d83bb95fddd1c0dd6eebed3d505.zip llvm-cebc4a167c518d83bb95fddd1c0dd6eebed3d505.tar.gz llvm-cebc4a167c518d83bb95fddd1c0dd6eebed3d505.tar.bz2 |
[Lex][Clang] Add checking to HeaderMapImpl::getString to make it more robust (#131677)
Static analysis identified the Len - 1 expression in
HeaderMapImpl::getString as problematic if Len is zero. After filing
this issue:
https://github.com/llvm/llvm-project/issues/130185
Indeed we should be checking MaxLen and verify it is not zero as well.
Fixes: https://github.com/llvm/llvm-project/issues/130185
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions