fix(native): keep lipo path echoes out of FAT records (#2605)

* fix(native): keep lipo path echoes out of FAT records

Parse FAT records only after separating the exact echoed operand path. Pass the same lipo operand at all three consumers and cover multiline paths through parser, slice-reader and compiled CLI regressions.

* fix(native): use parsed lipo framing for container offsets

* test(native): use explicit FAT fixtures for CLI regressions
This commit is contained in:
FengCi
2026-10-13 21:16:49 +08:00
committed by GitHub
parent 11268fe241
commit 59d33a2733
10 changed files with 347 additions and 106 deletions
+5 -2
View File
@@ -73,7 +73,7 @@ import {
} from "./SignatureTargetBinding.js";
import { parseCodeSignature } from "./parsers/codesign.js";
import { parseDemangledSymbols } from "./parsers/demangle.js";
import { parseLipoArchitectures } from "./parsers/lipo.js";
import { parseLipoOutput } from "./parsers/lipo.js";
import {
parsePlistJson,
parsePlistXml,
@@ -507,7 +507,10 @@ class NativeMacOSClient implements AnalysisClient {
);
if (!capture.ok) return capture;
const provenance = [invocation(capture.value, this.target.path)];
const architectures = parseLipoArchitectures(capture.value.stdout);
const { architectures } = parseLipoOutput(
capture.value.stdout,
this.target.path,
);
const result = listArchitecturesSchema.parse({
architectures: {
items: architectures,