mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
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:
1 parent
5553acfe50
commit
94182f331e
26 files changed
+2709
-44
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user