Skip to content

Commit 313fb2f

Browse files
committed
Switch from 2x u64 to sizeof header
1 parent 81075b4 commit 313fb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ MinidumpFileBuilder::AddMemoryList_64(std::vector<CoreFileMemoryRange> &ranges,
11091109
return error;
11101110

11111111
error = AddDirectory(StreamType::Memory64List,
1112-
(sizeof(llvm::support::ulittle64_t) * 2) +
1112+
(sizeof(llvm::minidump::Memory64ListHeader)) +
11131113
ranges.size() *
11141114
sizeof(llvm::minidump::MemoryDescriptor_64));
11151115
if (error.Fail())

0 commit comments

Comments
 (0)