From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Jimage" |
|---|
| claim | "A jimage (lib/modules) starts with u4 magic 0xCAFEDADA in the writer's byte order (DA DA FE CA on little-endian), then u4 version (major<<16|minor, currently 1.1), flags, resource count, table length, locations size, strings size." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Jimage" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "DA DA FE CA" |
|---|
| offset | 0 |
|---|
| meaning | "jimage header magic 0xCAFEDADA little-endian; inverted form CA FE DA DA is also accepted (IMAGE_MAGIC_INVERT 0xDADAFECA)" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ImageHeader fields and IMAGE_MAGIC / MAJOR_VERSION 1 / MINOR_VERSION 1" |
|---|
| repo | "https://github.com/openjdk/jdk" |
|---|
| commit | "3104115c2a0587895997965c9e88a1181f52ee47" |
|---|
| path | "src/java.base/share/native/libjimage/imageFile.hpp" |
|---|
| lines | "329-345, 448-455" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CAFEDADA" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T14:57:37.587Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:54:33.768Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched imageFile.hpp at 3104115c: header comment 'Magic (0xCAFEDADA)', u4 _magic read with the file's endian, IMAGE_MAGIC 0xCAFEDADA and IMAGE_MAGIC_INVERT 0xDADAFECA at lines 449-451." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:05:31.580Z" |
|---|
| summary | "List the inverted magic form as an alternative" |
|---|
| changed | |
|---|
|
|
|---|