mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2026-02-07 06:06:33 +00:00
Fix out of bounds access when searching for statics at the end of a section (#171)
Some checks are pending
validate / macos-14 (arm64, Release) (push) Waiting to run
validate / blaze/ubuntu-22.04 (arm64, Debug) (push) Waiting to run
validate / blaze/ubuntu-22.04 (arm64, Release) (push) Waiting to run
validate / macos-14 (arm64, Debug) (push) Waiting to run
validate / macos-15-intel (x64, Debug) (push) Waiting to run
validate / macos-15-intel (x64, Release) (push) Waiting to run
validate / ubuntu-latest (x64, Debug) (push) Waiting to run
validate / ubuntu-latest (x64, Release) (push) Waiting to run
validate / windows-latest (x64, Debug) (push) Waiting to run
validate / windows-latest (x64, Release) (push) Waiting to run
Some checks are pending
validate / macos-14 (arm64, Release) (push) Waiting to run
validate / blaze/ubuntu-22.04 (arm64, Debug) (push) Waiting to run
validate / blaze/ubuntu-22.04 (arm64, Release) (push) Waiting to run
validate / macos-14 (arm64, Debug) (push) Waiting to run
validate / macos-15-intel (x64, Debug) (push) Waiting to run
validate / macos-15-intel (x64, Release) (push) Waiting to run
validate / ubuntu-latest (x64, Debug) (push) Waiting to run
validate / ubuntu-latest (x64, Release) (push) Waiting to run
validate / windows-latest (x64, Debug) (push) Waiting to run
validate / windows-latest (x64, Release) (push) Waiting to run
This commit is contained in:
parent
2b6f05688d
commit
2e8f749bde
1 changed files with 1 additions and 1 deletions
|
|
@ -794,7 +794,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
// Search for the closest function
|
||||
size_t closest_func_index = 0;
|
||||
while (section_funcs[closest_func_index] < static_func_addr && closest_func_index < section_funcs.size()) {
|
||||
while (closest_func_index < section_funcs.size() && section_funcs[closest_func_index] < static_func_addr) {
|
||||
closest_func_index++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue