mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-3707 corrected array index bug in RISCV_ElfRelocationContext
This commit is contained in:
parent
29be477eef
commit
0233f35d1f
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class RISCV_ElfRelocationContext extends ElfRelocationContext {
|
||||||
--relIndex;
|
--relIndex;
|
||||||
}
|
}
|
||||||
// look for hi20 relocation
|
// 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();
|
int type = relocations[relIndex].getType();
|
||||||
if ((type == RISCV_ElfRelocationConstants.R_RISCV_PCREL_HI20) ||
|
if ((type == RISCV_ElfRelocationConstants.R_RISCV_PCREL_HI20) ||
|
||||||
(type == RISCV_ElfRelocationConstants.R_RISCV_GOT_HI20)) {
|
(type == RISCV_ElfRelocationConstants.R_RISCV_GOT_HI20)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue