Files
clang-p2996/clang/lib/Lex/HeaderMap.cpp
Shafik Yaghmour cebc4a167c [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
2025-03-20 08:17:11 -07:00

9.3 KiB