summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.h
diff options
context:
space:
mode:
authorMark Rowe <mrowe@bdash.net.nz>2024-11-12 19:11:14 -0800
committerkat <kat@vector35.com>2024-11-13 16:18:10 -0500
commitd553396c16a1f356f35f383d7838df8b4d8717b5 (patch)
treeab0ed9f039115aaf4fe6199e0c6ef41f849956d3 /view/sharedcache/core/SharedCache.h
parent0d27f74bd457689b9930614cfdca1c50d392203f (diff)
Append export and symbol info to correct arrays
This is both a correctness fix and avoids leaking a massive amount of memory.
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
-rw-r--r--view/sharedcache/core/SharedCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h
index fe037ca7..a27b15a0 100644
--- a/view/sharedcache/core/SharedCache.h
+++ b/view/sharedcache/core/SharedCache.h
@@ -967,7 +967,7 @@ namespace SharedCacheCore {
m_activeContext.allocator);
exportInfoArr.PushBack(exportInfoPairArr, m_activeContext.allocator);
}
- exportInfoArr.PushBack(exportInfoArr, m_activeContext.allocator);
+ exportInfos.PushBack(exportInfoArr, m_activeContext.allocator);
}
m_activeContext.doc.AddMember("exportInfos", exportInfos, m_activeContext.allocator);
// std::vector<std::pair<uint64_t, std::vector<std::pair<uint64_t, std::pair<BNSymbolType, std::string>>>>> m_symbolInfos
@@ -985,7 +985,7 @@ namespace SharedCacheCore {
m_activeContext.allocator);
symbolInfoArr.PushBack(symbolInfoPairArr, m_activeContext.allocator);
}
- symbolInfoArr.PushBack(symbolInfoArr, m_activeContext.allocator);
+ symbolInfos.PushBack(symbolInfoArr, m_activeContext.allocator);
}
m_activeContext.doc.AddMember("symbolInfos", symbolInfos, m_activeContext.allocator);