morluto
e540cbdafd
feat(native)!: give the native structural decoding allowance a per-call max_structure_bytes ( #14626 )
...
* feat(native)!: give the native structural decoding allowance a per-call max_structure_bytes
The 16 MiB structural budget on native header, section, load-command and
ELF dynamic-directory table reads, and on decoded section names, was a
fixed ceiling with no override. inspect_elf_unwind_ranges,
inspect_kernel_module, inspect_elf_debug_link, inspect_dwarf_units,
inspect_binary_hardening and inspect_native_initializers now accept
max_structure_bytes (64 bytes to 512 MiB, default 16 MiB) and report
details.limit when it stops them.
binaryContainer owns the default, the limit name and the failure
(nativeStructureFailure); the directory readers take a
NativeDirectoryBudgets object in place of the positional decoded-name
budget, and Mach-O, the ELF dynamic directory and the ELF pointer
relocation pass take the same budget. Other allowances that shared the
"structure" limit name now carry their own: the PE per-name decode, the
retained DWARF section bound (derived from the admitted image), and the
hardening table-entry count. The ELF dependency provider's structural
projection was unreachable and is removed.
Part of #14235 .
BREAKING CHANGE: refusals at the structural budget report
reported_limits.boundary "max_structure_bytes" instead of "structure".
* fix(native): apply max_structure_bytes to the ELF hardening dynamic table and scope its help
inspect_binary_hardening read PT_DYNAMIC under its entry count only, so a sectionless ELF could exceed the selected max_structure_bytes; the dynamic table is now checked first. The shared help no longer names tables a reader does not bound, and the limits reference states hardening's Mach-O and PE coverage. The initializer CLI recovery test asserts a parsed successful report.
* fix(native): refuse a partial ELF hardening dynamic table as malformed before its budget
2026-11-25 22:04:06 -05:00
..
2026-11-26 01:24:24 +08:00
2026-11-25 10:01:22 +00:00
2026-11-26 01:24:43 +08:00
2026-11-25 15:53:43 +00:00
2026-11-25 22:04:06 -05:00
2026-11-24 21:26:48 +08:00
2026-11-19 17:56:20 +00:00
2026-11-11 17:28:10 +08:00
2026-11-18 16:06:51 -05:00
2026-11-24 11:48:23 -05:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-15 20:35:48 +08:00
2026-11-24 10:26:59 +00:00
2026-11-11 00:16:44 -05:00
2026-11-22 16:42:37 +00:00
2026-10-13 18:23:17 +08:00
2026-11-25 10:22:25 +08:00
2026-10-08 22:43:51 +08:00
2026-11-24 10:26:59 +00:00
2026-11-25 14:53:18 +00:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-26 01:24:24 +08:00
2026-10-14 04:47:34 +08:00
2026-11-21 16:54:56 -05:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-26 01:24:24 +08:00
2026-11-19 03:58:03 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-11-23 13:40:29 -05:00
2026-11-19 14:46:31 +00:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-11-25 08:28:02 -05:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-23 12:06:28 -05:00
2026-11-18 17:54:40 -05:00
2026-11-19 03:58:03 +00:00
2026-11-21 22:06:51 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 20:55:29 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 22:01:49 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-16 00:06:34 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-18 15:08:58 -05:00
2026-11-26 01:24:37 +08:00
2026-11-17 10:47:29 +00:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-20 09:47:41 -05:00
2026-11-17 10:04:46 +00:00
2026-11-22 20:41:11 -05:00
2026-11-19 00:12:50 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:39:50 +08:00
2026-11-26 01:24:37 +08:00
2026-11-18 16:06:51 -05:00
2026-11-26 01:24:43 +08:00
2026-11-19 01:55:13 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-23 02:33:17 +00:00
2026-11-15 22:01:49 +08:00
2026-08-05 19:07:46 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:37 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-26 01:24:37 +08:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-25 08:29:31 -05:00
2026-11-16 08:04:12 +08:00
2026-11-25 08:29:31 -05:00
2026-11-17 08:28:59 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:24 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-25 08:29:31 -05:00
2026-11-15 22:01:49 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-11-20 17:58:27 -05:00
2026-11-25 21:30:12 -05:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:06:34 +08:00
2026-11-25 08:29:31 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 03:08:49 +00:00
2026-11-25 16:56:05 +00:00
2026-11-25 16:56:05 +00:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:23:52 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-15 19:52:38 +08:00
2026-11-15 19:52:38 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-23 23:24:46 +00:00
2026-11-25 16:56:05 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-10-05 22:54:17 +08:00
2026-11-19 23:29:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:16 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:16 +08:00
2026-11-20 04:35:35 +00:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 21:54:08 -05:00
2026-11-22 01:35:33 +00:00
2026-10-08 10:13:05 +00:00
2026-11-24 03:29:27 +00:00
2026-11-17 08:28:59 -05:00
2026-11-25 21:30:12 -05:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 22:06:51 -05:00
2026-10-26 16:04:44 +08:00
2026-11-15 21:50:00 +08:00
2026-11-26 01:24:16 +08:00
2026-11-25 08:29:31 -05:00
2026-11-19 03:58:03 +00:00
2026-11-21 09:17:40 -05:00
2026-11-21 10:11:39 -05:00
2026-11-21 22:06:51 -05:00
2026-11-21 10:11:39 -05:00
2026-10-26 14:46:23 +08:00