diff options
author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-05-15 15:36:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-15 09:36:28 -0400 |
commit | 636628d8fde45fc2bb99a1016f7503d0e744ab89 (patch) | |
tree | 2a1b4ad3a99c058d9b9e9d8c7a6e27379c439ad6 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | a2f156b84ab124ccfbbe2bd6cbbdb2f3bcbba0ce (diff) | |
download | llvm-636628d8fde45fc2bb99a1016f7503d0e744ab89.zip llvm-636628d8fde45fc2bb99a1016f7503d0e744ab89.tar.gz llvm-636628d8fde45fc2bb99a1016f7503d0e744ab89.tar.bz2 |
[clang] Enforce 1-based indexing for command line source locations (#139457)
Fixes #139375
Clang expects command line source locations to be provided using 1-based
indexing.
Currently, Clang does not reject zero as invalid argument for column or
line number, which can cause Clang to crash.
This commit extends validation in `ParsedSourceLocation::FromString` to
only accept (unsinged) non-zero integers.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions