fix: address review nits from batch integration follow-ups (#818)
- browser: reject empty Referrer-Policy tokens structurally while still skipping them per W3 fallback semantics. - browser: document that WebMCP keys cannot collapse since unknown frames are excluded before keying. - ghidra: split NativeAOT non-recovery diagnostics into reason-missing vs payload-present variants with exact assertions. - reference: lock secret-patterned exclusion before failure projection so failure messages cannot carry secret paths. - doctor: lock direct-launcher Codex timeout ordering both ways. - native: note plutil -n macOS 12+ requirement; add fat-output control guarding the thin pre-scan. - reconstruction: multi-unknown limitation coverage via shared helper. Tracks #817 for the remaining smol-toml advisory.
This commit is contained in:
@@ -19,6 +19,31 @@ it.each([
|
||||
},
|
||||
);
|
||||
|
||||
it("does not mistake fat slice output for a thin Non-fat file record", () => {
|
||||
const output = [
|
||||
"Fat header in: /owned/universal.dylib",
|
||||
"fat_magic 0xcafebab2",
|
||||
"nfat_arch 2",
|
||||
"architecture arm64",
|
||||
" cputype CPU_TYPE_ARM64",
|
||||
" cpusubtype CPU_SUBTYPE_ARM64E",
|
||||
" offset 16384",
|
||||
" size 16777216",
|
||||
" align 2^14 (16384)",
|
||||
"architecture x86_64",
|
||||
" cputype CPU_TYPE_X86_64",
|
||||
" cpusubtype CPU_SUBTYPE_X86_64_ALL",
|
||||
" offset 16793600",
|
||||
" size 16777216",
|
||||
" align 2^12 (4096)",
|
||||
"",
|
||||
].join("\n");
|
||||
expect(parseLipoArchitectures(output)).toMatchObject([
|
||||
{ name: "arm64", file_offset: 16384 },
|
||||
{ name: "x86_64", file_offset: 16793600 },
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps section blocks separate under CRLF captures", async () => {
|
||||
const lf = parseOtoolLoadCommands(await nativeFixture("otool-load.txt"));
|
||||
const crlf = parseOtoolLoadCommands(
|
||||
|
||||
Reference in New Issue
Block a user