Skip to content

Commit 5e50e19

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 (cherry picked from commit 3d04695)
1 parent 4d01184 commit 5e50e19

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
@@ -1412,7 +1412,7 @@ void ObjectFileMachO::SanitizeSegmentCommand(
14121412
seg_cmd.cmd == LC_SEGMENT_64 ? "LC_SEGMENT_64" : "LC_SEGMENT";
14131413
GetModule()->ReportWarning(
14141414
"load command {0} {1} has a fileoff + filesize ({2:x16}) that "
1415-
"extends beyond the end of the file ({4:x16}), the segment will be "
1415+
"extends beyond the end of the file ({3:x16}), the segment will be "
14161416
"truncated to match",
14171417
cmd_idx, lc_segment_name, seg_cmd.fileoff + seg_cmd.filesize, m_length);
14181418

0 commit comments

Comments
 (0)