mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-2553 fix MemoryByteProvider's length() issues
Previously the impl would only return the length of the memory block where the byte provider started, or return 0 if there wasn't a memoryblock at the base address. Now returns the length of the available memory (in the same addressspace) that is found in the program's memory map, clamped to Long.MAX_VALUE. Updated users of MemoryByteProvider to use helper methods to create. Removed ISO9660 format analyzer (that was using MemorbyByteProvider) because we no longer have our own iso format code after switching to Sevenzip.
This commit is contained in:
parent
2113bdc8b1
commit
14f5cf93da
58 changed files with 775 additions and 2295 deletions
|
@ -32,9 +32,8 @@ public class BTreeAnnotationScript extends GhidraScript {
|
|||
|
||||
@Override
|
||||
public void run() throws Exception {
|
||||
Address address = currentProgram.getMinAddress();
|
||||
|
||||
ByteProvider provider = new MemoryByteProvider(currentProgram.getMemory(), address);
|
||||
ByteProvider provider =
|
||||
MemoryByteProvider.createProgramHeaderByteProvider(currentProgram, false);
|
||||
|
||||
BinaryReader reader = new BinaryReader(provider, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue