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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user