[Lldb-commits] [lldb] 3d04695 - [lldb] fix one-off error in vformat specifier
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 25 21:37:34 PDT 2024
Author: Jason Molenda
Date: 2024-09-25T21:36:51-07:00
New Revision: 3d0469516c687b6dad3e6482fd94d64c65fa4a01
URL: https://github.com/llvm/llvm-project/commit/3d0469516c687b6dad3e6482fd94d64c65fa4a01
DIFF: https://github.com/llvm/llvm-project/commit/3d0469516c687b6dad3e6482fd94d64c65fa4a01.diff
LOG: [lldb] fix one-off error in vformat specifier
Results in an assert at runtime, when run on an improperly formed
corefile.
rdar://136659551
Added:
Modified:
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 06da83e26a26a5..b542e237f023d4 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -1409,7 +1409,7 @@ void ObjectFileMachO::SanitizeSegmentCommand(
seg_cmd.cmd == LC_SEGMENT_64 ? "LC_SEGMENT_64" : "LC_SEGMENT";
GetModule()->ReportWarning(
"load command {0} {1} has a fileoff + filesize ({2:x16}) that "
- "extends beyond the end of the file ({4:x16}), the segment will be "
+ "extends beyond the end of the file ({3:x16}), the segment will be "
"truncated to match",
cmd_idx, lc_segment_name, seg_cmd.fileoff + seg_cmd.filesize, m_length);
More information about the lldb-commits
mailing list