Add bounded reachable main-EXE discovery

Adapt Douglas's opt-in reachable discovery onto current exact/static dispatch. Validate configured static-analysis bounds before truncation, preserve the whole-image default and canonical page reservations, and leave unresolved indirect or out-of-bound targets to runtime fallback.

Source: https://github.com/douglasjv/mm8

Source-commit: https://github.com/douglasjv/mm8/commit/8415f3a95458c41c7f48fbe36caaf0ee82730720

Co-authored-by: douglasjv <vanderveerdouglas@gmail.com>
This commit is contained in:
Matthew Stanley
2026-07-13 21:56:43 -07:00
parent dde268dc0f
commit bd705bfcec
12 changed files with 478 additions and 9 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ FunctionAnalysisResult FunctionAnalyzer::analyze_exact_entries(const std::vector
result.call_discovered_count = 0;
result.state_continuation_count = 0;
fmt::print("\n=== Exact Overlay Function Analysis ===\n\n");
fmt::print("\n=== Exact-Entry Function Analysis ===\n\n");
auto in_exe = [&](uint32_t addr) {
return addr >= exe_.header.load_address && addr < exe_.end_address() && (addr & 3u) == 0;