fix(apple): admit only compatible dyld subcache mappings (#1090)
UUID, architecture, and cache VM offset are one admission decision, so a matching UUID cannot publish contradictory mappings. A shared-cache trace hit also requires the mapped bytes to parse as a Mach-O the process can load. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
@@ -225,6 +225,7 @@ const sharedCacheView = (cache: DyldSharedCache): DylibSharedCacheView => ({
|
||||
.filter(({ status }) => status !== "present")
|
||||
.map(({ suffix, status }) => `${suffix} (${status})`),
|
||||
lookup: (path) => cache.locate(path),
|
||||
image: async (path) => (await cache.imageFacts(path))?.facts,
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user