v2.0 — 31 C POC twins + harness fixes

- 31 C POC files, one per CVE folder: full seed construction + trigger +
  main(), self-contained, no app dependency. All compile clean with
  clang -O2 -Wall (zero warnings) on macOS arm64; each has a recorded
  oracle on this host.
- CMGetDMVersionLevelFromRPU ABI pinned by disassembly: macOS export is
  (CFDataRef), the Swift POC drives the 4-arg iOS surface — this is the
  mechanism behind the cm.rpu death oracle on the simulator build.
- Harness fixes: glyphCount guard, MachOInspector size guard, ModTools
  clamp, DeviceModel iPhone19,7, GPTPayload clamps, Gate patch display.
- POC comments rewritten English-only (31 swift + arc.rr + 5 py).
- README (en/zh): C twin column, .c anatomy section, compile/run
  examples, C oracle verification status.
- Dead if-let binding removed from Identity summary; v2.0 build 3.
This commit is contained in:
JBJF committed 2026-10-29 20:08:55 +08:00
1 parent 1ea76ab005
commit 7949c7ce9f
79 files changed
+4109 -892

No files matched your search

-16
View File
@@ -1,20 +1,4 @@
#!/usr/bin/env python3
# iio.ktx2 · ImageIO · KTX2ReadPlugin · CVE-2026-112625
# 原语: 整数溢出 · 进程内 | Primitive: integer overflow · in-process
#
# [zh] KTX2 维度/层级尺寸运算
# KTX/KTX2 的层级字节数与块数运算缺少 64 位 umull/umulh 保护,且既有检查所依据的量本身是错的(使用 channels 而非源 bpp)。27.2 增加 \"image
# dimensions overflow\" 与 \"expected %llu bytes\" 两道闸门。
#
# [en] KTX2 dimension and level size arithmetic
# KTX/KTX2 level byte counts and block counts lack 64-bit umull/umulh protection, and the existing
# check is keyed on the wrong quantity (channels rather than source bpp). iOS 27.2 adds "image
# dimensions overflow" and "expected %llu bytes" gates.
#
# 种子生成 — verbatim from Cinder27/scripts/gen_seeds.py
# 触发器(run 闭包)与非种子构建器: 同目录 CVE-2026-112625.swift
# triggers (run closures) & non-seed builders: CVE-2026-112625.swift in this folder
import struct