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:
morluto
2026-10-07 10:49:23 +08:00
committed by GitHub
parent 3af3811ab0
commit 5a0e0ba3b8
9 changed files with 180 additions and 71 deletions
+2 -1
View File
@@ -331,7 +331,8 @@ const referrerPolicy = (value: string | undefined): string | null => {
let policy: string | null = null;
for (const raw of (value ?? "").split(",")) {
const token = raw.trim().toLowerCase();
if (!/^[a-z-]*$/u.test(token)) return null;
if (token === "") continue;
if (!/^[a-z-]+$/u.test(token)) return null;
if (referrerPolicies.has(token)) policy = token;
}
return policy;
+2
View File
@@ -498,6 +498,8 @@ const buildWebMcpResult = (options: WebMcpResultOptions): WebMcpDiscovery => {
};
const toolKey = (frameUrl: string, frameId: string, name: string): string =>
// Registrations without a known admitted frame are excluded above, so the
// frame ID here always distinguishes owners and keys cannot collapse.
`webmcp_${createHash("sha256").update(`${frameUrl}\0${frameId}\0${name}`).digest("hex")}`;
const booleanOrNull = (value: unknown): boolean | null =>