summaryrefslogtreecommitdiff
path: root/disasm/dumpobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'disasm/dumpobject.cpp')
-rw-r--r--disasm/dumpobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/disasm/dumpobject.cpp b/disasm/dumpobject.cpp
index ae09b12..f71208c 100644
--- a/disasm/dumpobject.cpp
+++ b/disasm/dumpobject.cpp
@@ -13,10 +13,11 @@ void dump_object(std::string file_name, binparse::Value32 object_id)
auto file = parse_file(ifs);
std::vector<_DecodedInst> instructions;
- instructions.resize(100000);
+
unsigned int read_inst;
std::vector<uint8_t> code = read_object(ifs, file, object_id);
+ instructions.resize(code.size());
auto result = distorm_decode64(
file.object_table.entries[object_id].reloc_base_address,