mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
fix(native): own complete metadata mappings and ambiguity
Resolve Go pointer descriptors and strings across complete, consistent file-backed spans, including PE headers and adjacent ELF load ranges. Reuse the canonical image-mapping selection for native exports. Preserve existing gaps, alias, zero-fill and capacity refusals. Forward parsed zero-fill ownership through IL2CPP relocation tables, destinations and mapped-span checks. Distinguish missing spans from ambiguous ownership in the shared mapping failure: unresolved relocation targets may remain unknown, while ambiguous raw registration bytes cannot be reused as a resolved count. Validation: parser, provider, service, native-export, IL2CPP and public CLI/MCP regressions cover PE32/PE32+ headers, split ELF descriptors/contents, relocation count conflicts, ordinary unresolved targets and unchanged inputs. Authored carriers establish static parsing, not Windows loading or actual legacy Go linker emission. Fixes #6831 Fixes #6830
This commit is contained in:
1 parent
b7ebccf8d3
commit
8b3902d377
12 files changed
+526
-41
No files matched your search
@@ -237,7 +237,12 @@ export const readUInt32 = (
|
||||
|
||||
export const isMapped = (image: NativeImage, address: bigint, size: number) => {
|
||||
try {
|
||||
mappedFileOffset(image.container.mappings, address, size);
|
||||
mappedFileOffset(
|
||||
image.container.mappings,
|
||||
address,
|
||||
size,
|
||||
image.container.zero_fills,
|
||||
);
|
||||
return true;
|
||||
} catch (cause) {
|
||||
if (cause instanceof BinaryFormatFailure) return false;
|
||||
|
||||
Reference in new issue
Block a user