Skip to content

Commit 3d04695

Browse files
committed
[lldb] fix one-off error in vformat specifier
Results in an assert at runtime, when run on an improperly formed corefile. rdar://136659551
1 parent a96876f commit 3d04695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ void ObjectFileMachO::SanitizeSegmentCommand(
14091409
seg_cmd.cmd == LC_SEGMENT_64 ? "LC_SEGMENT_64" : "LC_SEGMENT";
14101410
GetModule()->ReportWarning(
14111411
"load command {0} {1} has a fileoff + filesize ({2:x16}) that "
1412-
"extends beyond the end of the file ({4:x16}), the segment will be "
1412+
"extends beyond the end of the file ({3:x16}), the segment will be "
14131413
"truncated to match",
14141414
cmd_idx, lc_segment_name, seg_cmd.fileoff + seg_cmd.filesize, m_length);
14151415

0 commit comments

Comments
 (0)