From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:LuaJIT bytecode" |
|---|
| claim | "A LuaJIT bytecode dump starts with 1B 4C 4A (ESC 'L' 'J') followed by the dump version byte (2 in LuaJIT 2.1) and the ULEB128 flags." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:LuaJIT bytecode" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "1B 4C 4A" |
|---|
| offset | 0 |
|---|
| meaning | "LuaJIT bytecode dump header (BCDUMP_HEAD1-3); byte 3 = BCDUMP_VERSION (2 in the 2.1 source, 0x80+ reserved for private modifications), byte 4 = flags" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "BCDUMP_HEAD1 0x1b, HEAD2 0x4c, HEAD3 0x4a, BCDUMP_VERSION 2" |
|---|
| repo | "https://github.com/LuaJIT/LuaJIT" |
|---|
| commit | "2a8e017ef1ece6a95b983ffca073d30609dce7c4" |
|---|
| path | "src/lj_bcdump.h" |
|---|
| lines | "31-39" |
|---|
|
| type | "source" |
|---|
| detail | "bcwrite_header writes the three head bytes, BCDUMP_VERSION, then the flags byte" |
|---|
| repo | "https://github.com/LuaJIT/LuaJIT" |
|---|
| commit | "2a8e017ef1ece6a95b983ffca073d30609dce7c4" |
|---|
| path | "src/lj_bcwrite.c" |
|---|
| lines | "388-401" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Dump header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T06:08:32.228Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:00:29.959Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lj_bcdump.h: BCDUMP_HEAD1 0x1b, HEAD2 0x4c, HEAD3 0x4a, BCDUMP_VERSION 2." |
|---|
|
|
|---|