mirror of
https://github.com/morluto/rea.git
synced 2026-11-29 01:46:39 +00:00
* feat(native)!: give inspect_native_exports per-call inventory, text and structure budgets The native export reader refused at a fixed 262,144-row inventory, a fixed 16 MiB retained-text allowance and the fixed 16 MiB structural allowance. It now accepts max_entries (rows and declared symbol counts; default 262,144, at most 4,194,304), max_text_bytes (default 16 MiB, at most 256 MiB) and max_structure_bytes, which now also bounds the ELF dynamic, symbol and version tables located through PT_DYNAMIC. The parser threads one NativeExportBudgets object through the ELF and PE paths and elfDynamicExportTables; the Android JNI reader keeps the defaults. Refusals report details.limit and the generated recovery. A declared table count is reported as required_value; the text budget stops at the first excess and reports none. Part of #14235. BREAKING CHANGE: export inventory and retained-text refusals report details.limit for max_entries or max_text_bytes instead of a fixed_ceiling refusal, and MAX_NATIVE_EXPORT_ROWS is renamed DEFAULT_NATIVE_EXPORT_ROWS. * chore: refresh the inspect_native_exports advertised schema summary * fix(native): omit lower-bound GNU hash required_value, decouple version work from max_entries, and update export recovery tests * test: expect the lower-bound marker on a stopped GNU hash chain walk * fix(native): cap ELF version traversal work and aggregate malformed version definition diagnostics