mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
24bad727a1
1 changed files with 7 additions and 1 deletions
|
@ -165,7 +165,13 @@ public class MachoLoader extends AbstractLibrarySupportLoader {
|
|||
|
||||
for (FatArch architecture : architectures) {
|
||||
ByteProvider bp = new ByteProviderWrapper(provider, architecture.getOffset(),
|
||||
architecture.getSize());
|
||||
architecture.getSize()) {
|
||||
|
||||
@Override // Ensure the parent provider gets closed when the wrapper does
|
||||
public void close() throws IOException {
|
||||
super.provider.close();
|
||||
}
|
||||
};
|
||||
LoadSpec libLoadSpec = matchSupportedLoadSpec(loadSpec, bp);
|
||||
if (libLoadSpec != null) {
|
||||
return bp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue