mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-0: Fixed DBTraceCodeUnitTest
This commit is contained in:
parent
9f54b92325
commit
c18430e491
1 changed files with 1 additions and 1 deletions
|
@ -745,8 +745,8 @@ public class DBTraceMemorySpace implements Unfinished, TraceMemorySpace, DBTrace
|
||||||
AddressRange rng = ent.getKey();
|
AddressRange rng = ent.getKey();
|
||||||
int offset = (int) rng.getMinAddress().subtract(toRead.getMinAddress());
|
int offset = (int) rng.getMinAddress().subtract(toRead.getMinAddress());
|
||||||
int length = (int) rng.getLength();
|
int length = (int) rng.getLength();
|
||||||
buf.position(pos + offset);
|
|
||||||
buf.limit(pos + offset + length);
|
buf.limit(pos + offset + length);
|
||||||
|
buf.position(pos + offset);
|
||||||
int read = getBytes(ent.getValue(), rng.getMinAddress(), buf);
|
int read = getBytes(ent.getValue(), rng.getMinAddress(), buf);
|
||||||
if (read < length) {
|
if (read < length) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue