feat(go): recover bounded Go string literals from (ptr, len) headers (#9206)

* feat(go): recover bounded Go string literals from (ptr, len) headers

* fix(go): deduplicate header scan spans, bound rejected cache, and reject Cf

* fix(go): allow U+200C ZWNJ and U+200D ZWJ in Go string literal recovery

* fix(go): index Mach-O load regions, validate MCP schema, and add feature specs

* test(go): cover Mach-O region-index cancellation and load-region boundaries
This commit is contained in:
Ryan S authored and GitHub committed 2026-11-08 22:50:32 +00:00
1 parent 5553acfe50
commit 94182f331e
26 files changed
+2709 -44

No files matched your search

+2
View File
@@ -85,6 +85,7 @@ export type ImageSection = {
/** Null when the ELF name table is unavailable or this name is unreadable. */
readonly name: string | null;
readonly type: number;
readonly flags: bigint;
readonly address: bigint;
readonly declared_range: {
readonly offset: bigint;
@@ -105,6 +106,7 @@ export type ImageSection = {
readonly name: string;
readonly section_name: string;
readonly type: number;
readonly flags: number;
readonly address: bigint;
readonly declared_range: {
readonly offset: bigint;
+1
View File
@@ -82,6 +82,7 @@ export const readElfImage = (
format: "elf",
name: section.name,
type: section.type,
flags: section.flags,
address: section.address,
declared_range: { offset: section.offset, size: section.size },
...range,
+1
View File
@@ -230,6 +230,7 @@ const machoImageSection = ({
name,
section_name: sectionName,
type: flags & 0xff,
flags,
address: sectionAddress,
declared_range: { offset: sectionOffset, size: sectionSize },
segment_mapping: segmentMapping,