[all-commits] [llvm/llvm-project] a84800: [lldb] Fixed UB in CPlusPlusLanguage plug-in (#158...
Dmitry Vasilyev via All-commits
all-commits at lists.llvm.org
Fri Sep 12 09:56:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a848008e1996f8934dee0a297975ac0e6b4200ec
https://github.com/llvm/llvm-project/commit/a848008e1996f8934dee0a297975ac0e6b4200ec
Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: 2025-09-12 (Fri, 12 Sep 2025)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
M lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
Log Message:
-----------
[lldb] Fixed UB in CPlusPlusLanguage plug-in (#158304)
C++11 allows the use of Universal Character Names (UCNs) in identifiers,
including function names.
According to the spec the behavior of std::isalpha(ch) and
std::isalnum(ch) is undefined if the argument's value is neither
representable as unsigned char nor equal to EOF. To use these functions
safely with plain chars (or signed chars), the argument should first be
converted to unsigned char.
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