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

+3 -32
View File
@@ -1,23 +1,8 @@
// iio.tiff.planar · ImageIO · decodeStripPlanar · CVE-2026-112633 / 112614
// 原语: OOB 写 · 进程内 · tier 2
// Primitive: OOB write · in-process · tier 2
//
// [zh] TIFF planar 散写越界
// 当 PlanarConfiguration=2 且 SamplesPerPixel 大于 Photometric 所指的通道数时,散写指针的偏移以 32 位乘法计算,且计算结果与目标行容量之间不存在任何比较。
// 27.2 改为 64 位 umull 并比对所需字节数与容量。
//
// [en] TIFF planar scatter out-of-bounds write
// With PlanarConfiguration=2 and SamplesPerPixel greater than the channel count implied by Photometric,
// the scatter pointer offset is computed with a 32-bit multiply and the result is never compared
// against the destination row capacity. iOS 27.2 switches to a 64-bit umull and compares required
// bytes against capacity.
// ── 判别 / oracle ──
// 24A435 的报错串不存在:\"*** ERROR: decodeStripPlanar destination row is %u bytes, the scatter needs %llu\"。
// 变体 iio.pdf.raster: PDF 栅格化解码缓冲越界
// TIFF planar scatter out-of-bounds write
import Foundation
// ── byte helpers — verbatim from Cinder27 Sources/Kit.swift ──
// ── byte helpers (from Cinder27 Sources/Kit.swift) ──
enum B {
static func be16(_ v: UInt16) -> [UInt8] { [UInt8(v >> 8 & 0xff), UInt8(v & 0xff)] }
static func le16(_ v: UInt16) -> [UInt8] { [UInt8(v & 0xff), UInt8(v >> 8 & 0xff)] }
@@ -38,22 +23,8 @@ enum B {
static func ascii(_ s: String) -> [UInt8] { Array(s.utf8) }
}
/*
// iio.pdf.raster · ImageIO · PDFReadPlugin::decodeImageData · CVE-2026-112633
// 原语: OOB 写 · 进程内 · tier 2
// Primitive: OOB write · in-process · tier 2
//
// [zh] PDF 栅格化解码缓冲越界
// PDF 页被栅格化进调用方提供的解码缓冲,但未校验该缓冲是否足以容纳。27.2 补入 umull width×bpp、与 have 比较、b.hi 跳转,并报 \"decode buffer
// too small: need %zu bytes (%zu x %zu), have %zu\"。
//
// [en] PDF rasterisation decode buffer overrun
// The PDF page is rasterised into a caller-supplied decode buffer with no check that the buffer is
// large enough. iOS 27.2 adds umull width×bpp, compares against have, branches b.hi, and reports
// "decode buffer too small: need %zu bytes (%zu x %zu), have %zu".
*/
// ── 种子构造 / seed construction — verbatim from Cinder27 Sources (TIFFPayload) ──
// ── seed construction (from Cinder27 Sources: TIFFPayload) ──
enum TIFFPayload {
struct Entry {
let tag: UInt16