mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-31 15:53:16 +00:00
Fix jump table entry bounds check
This commit is contained in:
parent
7449fad4bb
commit
21fe6f1c3c
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ bool N64Recomp::analyze_function(const N64Recomp::Context& context, const N64Rec
|
|||
}
|
||||
|
||||
// Check if the entry is a valid address in the current function
|
||||
if (jtbl_word < func.vram || jtbl_word > func.vram + func.words.size() * sizeof(func.words[0])) {
|
||||
if (jtbl_word < func.vram || jtbl_word >= func.vram + func.words.size() * sizeof(func.words[0])) {
|
||||
// If it's not then this is the end of the jump table
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue