[all-commits] [llvm/llvm-project] cebc4a: [Lex][Clang] Add checking to HeaderMapImpl::getStr...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Thu Mar 20 08:17:32 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cebc4a167c518d83bb95fddd1c0dd6eebed3d505
https://github.com/llvm/llvm-project/commit/cebc4a167c518d83bb95fddd1c0dd6eebed3d505
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2025-03-20 (Thu, 20 Mar 2025)
Changed paths:
M clang/lib/Lex/HeaderMap.cpp
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list