Skip to content

Commit

Permalink
Scan: Update find_function_start_with_call with unwind variant
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jan 25, 2025
1 parent e4d1d87 commit 7ceca3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ namespace utility {
return std::nullopt;
}

for (auto func = find_function_start(middle); func.has_value(); func = find_function_start(*func - 1)) {
for (auto func = find_function_start_unwind(middle); func.has_value(); func = find_function_start_unwind(*func - 1)) {
SPDLOG_INFO(" Checking if {:x} is a real function", *func);

const auto ref = utility::scan_displacement_reference(module, *func, [&](uintptr_t ref) {
Expand Down

0 comments on commit 7ceca3f

Please sign in to comment.