mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
GP-3707 corrected array index bug in RISCV_ElfRelocationContext
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ class RISCV_ElfRelocationContext extends ElfRelocationContext {
|
||||
--relIndex;
|
||||
}
|
||||
// look for hi20 relocation
|
||||
while (relIndex < relocations.length && relocations[relIndex - 1].getOffset() == symValue) {
|
||||
while (relIndex < relocations.length && relocations[relIndex].getOffset() == symValue) {
|
||||
int type = relocations[relIndex].getType();
|
||||
if ((type == RISCV_ElfRelocationConstants.R_RISCV_PCREL_HI20) ||
|
||||
(type == RISCV_ElfRelocationConstants.R_RISCV_GOT_HI20)) {
|
||||
|
||||
Reference in New Issue
Block a user