From 66b933288095071fb19f6124af14c812e58c09bd Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 14 Aug 2025 10:13:21 -0400 Subject: Ensure ELFView only add segments in a Begin/EndBulkAddSegments context --- view/elf/elfview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'view/elf/elfview.cpp') diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp index 1e7705a3..29914ca7 100644 --- a/view/elf/elfview.cpp +++ b/view/elf/elfview.cpp @@ -583,6 +583,7 @@ bool ElfView::Init() vector relocSections, relocASections; Elf64SectionHeader symbolTableSection; + BeginBulkAddSegments(); uint64_t segmentStart = 0; for (size_t i = 1; i < m_elfSections.size(); i++) { @@ -700,6 +701,8 @@ bool ElfView::Init() GetParentView()->AddAutoSection(sectionNames[i], m_elfSections[i].offset, m_elfSections[i].size, DefaultSectionSemantics, type, m_elfSections[i].align, m_elfSections[i].entrySize, linkedSection, infoSection, m_elfSections[i].info); } } + + EndBulkAddSegments(); // Apply architecture and platform if (!m_arch) { -- cgit v1.3.1