Kaoru0822 and Claude Opus 5.5
0b04d384cc
fix(native): refuse truncated executable headers at target admission
...
Target admission accepted a thin Mach-O after reading only its magic and
CPU type, so a 12-byte prefix opened as a valid arm64 executable and the
first provider query failed as a generic execution failure. ELF headers
were likewise accepted after 20 bytes, and a FAT file whose selected slice
lies beyond its end was admitted.
Require the complete fixed header (Mach-O 28 or 32 bytes, ELF 52 or 64),
Mach-O load commands that fit in the file, and a selected FAT slice within
the file, checking commitments against the file size rather than the
probed prefix. Each refusal names the failed constraint.
Fixes #1189
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-09 03:51:37 +00:00
..
2026-10-07 15:05:29 +08:00
2026-10-09 01:11:49 +08:00
2026-10-09 02:58:03 +08:00
2026-10-08 05:51:14 +08:00
2026-10-08 05:51:14 +08:00
2026-10-08 05:51:14 +08:00
2026-10-09 02:58:03 +08:00
2026-10-09 02:23:44 +00:00
2026-10-08 05:51:14 +08:00
2026-10-08 05:51:14 +08:00
2026-10-08 05:51:14 +08:00
2026-10-09 03:51:37 +00:00
2026-10-08 04:03:24 +08:00
2026-10-09 06:30:46 +08:00
2026-10-09 06:08:29 +08:00
2026-10-09 03:13:27 +08:00
2026-10-09 03:17:11 +00:00
2026-10-09 06:08:29 +08:00
2026-10-08 04:03:24 +08:00
2026-10-08 22:43:51 +08:00
2026-10-08 01:33:39 +08:00
2026-10-07 20:00:24 +08:00
2026-10-09 00:11:28 +08:00
2026-10-08 04:03:24 +08:00
2026-09-29 16:29:23 +08:00
2026-10-09 09:29:22 +08:00
2026-10-08 22:43:51 +08:00
2026-10-08 20:39:39 +08:00
2026-10-09 06:32:10 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 00:09:55 +08:00
2026-10-08 05:51:14 +08:00
2026-10-08 05:51:14 +08:00
2026-10-09 01:24:47 +08:00
2026-10-07 17:16:58 +08:00
2026-10-08 04:35:32 +08:00
2026-10-09 00:15:24 +08:00
2026-10-08 13:24:24 +08:00
2026-10-08 14:00:34 +08:00
2026-10-08 20:47:01 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 16:03:37 +08:00
2026-10-07 19:04:15 +08:00
2026-10-08 04:03:24 +08:00
2026-10-09 07:13:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-08 13:43:30 +00:00
2026-10-07 21:09:33 +08:00
2026-10-09 01:31:53 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-07 10:49:23 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-09 03:13:43 +08:00
2026-10-07 02:36:21 +08:00
2026-10-06 16:18:42 +08:00
2026-10-09 08:44:47 +08:00
2026-10-09 08:44:47 +08:00
2026-10-07 01:46:52 +08:00
2026-10-09 00:49:30 +08:00
2026-10-08 22:43:51 +08:00
2026-10-06 16:53:33 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 14:59:52 +08:00
2026-10-06 19:53:08 +08:00
2026-10-07 14:59:52 +08:00
2026-10-09 02:58:03 +08:00
2026-10-08 22:37:10 +08:00
2026-10-07 16:21:18 +08:00
2026-10-08 22:11:54 +08:00
2026-10-08 05:51:14 +08:00