Merge remote-tracking branch 'origin/GP-4800_ghizard_fix_AbstractProgramBasedTest_addr_method_to_use_param'

This commit is contained in:
Ryan Kurtz 2024-07-30 13:49:17 -04:00
commit d201b939d2

View file

@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -102,7 +102,7 @@ public abstract class AbstractProgramBasedTest extends AbstractGhidraHeadedInteg
}
public Address addr(Program p, long offset) {
AddressFactory addrMap = program.getAddressFactory();
AddressFactory addrMap = p.getAddressFactory();
AddressSpace space = addrMap.getDefaultAddressSpace();
return space.getAddress(offset);
}