Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Apple Disk Image (UDIF)/magic/koly trailer

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Apple Disk Image (UDIF)"
claim"A UDIF disk image ends with a 512-byte koly block whose first 4 bytes are 6B 6F 6C 79 ("koly"); it holds the XML plist offset and length."
scope
level"format"
applies_to"Format:Apple Disk Image (UDIF)"
observed_in
Empty array
data
bytes"6B 6F 6C 79"
offset-512
relative_to"end of file"
meaning"UDIF koly header signature (big-endian 0x6B6F6C79)"
evidence
type"source"
detail"offset = length - 512; read UDIFResourceFile; compare be(signature) with UDIF_SIGNATURE"
repo"https://github.com/darlinghq/darling-dmg"
commit"1a6de10c5886c40a414090701b2520bd0417ce29"
path"src/DMGDisk.cpp"
type"source"
detail"#define UDIF_SIGNATURE 0x6B6F6C79"
repo"https://github.com/darlinghq/darling-dmg"
commit"1a6de10c5886c40a414090701b2520bd0417ce29"
path"src/dmg.h"
confidence"high"
related
Empty array
key"koly trailer"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T19:22:47.405Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:29:00.051Z"
result"confirmed"
method"Read darling-dmg src/DMGDisk.cpp at the cited commit: offset = reader->length() - 512, reads the UDIF struct there and compares be(signature) with UDIF_SIGNATURE; plist offset/length read from fUDIFXMLOffset/Length"