Skip to content
Snippets Groups Projects
Commit d827802f authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

fixed memory error in libDecode

Former-commit-id: 39ee6afa4e0efdd2af559391f952c2c788e223f8
parent 25fd93a9
No related branches found
No related tags found
No related merge requests found
...@@ -196,7 +196,8 @@ DecodedInstructionCapstone_t::DecodedInstructionCapstone_t(const Instruction_t* ...@@ -196,7 +196,8 @@ DecodedInstructionCapstone_t::DecodedInstructionCapstone_t(const Instruction_t*
if(!i) throw std::invalid_argument("No instruction given to DecodedInstruction_t(Instruction_t*)"); if(!i) throw std::invalid_argument("No instruction given to DecodedInstruction_t(Instruction_t*)");
const auto length=i->GetDataBits().size(); const auto length=i->GetDataBits().size();
const auto data=i->GetDataBits().data(); const auto &databits=i->GetDataBits();
const auto data=databits.data();
const auto address=i->GetAddress()->GetVirtualOffset(); const auto address=i->GetAddress()->GetVirtualOffset();
Disassemble(address,data,length); Disassemble(address,data,length);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment