From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Library:Libjpeg" |
|---|
| claim | "The message codes (J_MESSAGE_CODE, the index into jpeg_std_message_table stored in err->msg_code) shift with the API level because the list in jerror.h is conditional: API 6b (IJG 6b, libjpeg-turbo JPEG_LIB_VERSION 62): JERR_BAD_LIB_VERSION 12, JERR_BAD_STATE 20, JERR_BAD_STRUCT_SIZE 21, JERR_NO_SOI 53, JMSG_COPYRIGHT 73, JMSG_VERSION 74, JWRN_EXTRANEOUS_DATA 116. API 7/8 (IJG 7-9f, libjpeg-turbo 70/80): 13, 21, 22, 55, 75, 76, 119." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libjpeg" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "J_MESSAGE_CODE" |
|---|
| underlying_type | "int" |
|---|
| values | | name | "JMSG_NOMESSAGE" |
|---|
| value | 0 |
|---|
|
| name | "JERR_BAD_LIB_VERSION" |
|---|
| value | 13 |
|---|
| notes | "12 for API 6b" |
|---|
|
| name | "JERR_BAD_STATE" |
|---|
| value | 21 |
|---|
| notes | "20 for API 6b" |
|---|
|
| name | "JERR_BAD_STRUCT_SIZE" |
|---|
| value | 22 |
|---|
| notes | "21 for API 6b" |
|---|
|
| name | "JERR_NO_SOI" |
|---|
| value | 55 |
|---|
| notes | "53 for API 6b" |
|---|
|
| name | "JMSG_COPYRIGHT" |
|---|
| value | 75 |
|---|
| notes | "73 for API 6b" |
|---|
|
| name | "JMSG_VERSION" |
|---|
| value | 76 |
|---|
| notes | "74 for API 6b" |
|---|
|
| name | "JWRN_EXTRANEOUS_DATA" |
|---|
| value | 119 |
|---|
| notes | "116 for API 6b" |
|---|
|
|
|---|
| complete | false |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "JMESSAGE list with #if JPEG_LIB_VERSION < 70 / >= 70 blocks; indices counted by a script that evaluates the conditions for 62, 70 and 80" |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "src/jerror.h" |
|---|
| lines | "45-216" |
|---|
|
| type | "comparison" |
|---|
| detail | "Same counts from jerror.h at IJG jpeg-6b (12/21/53/73) and jpeg-8d, jpeg-9f (13/22/55/75), and at the libjpeg-turbo v2.1.5.1 tag" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "MSVC x64 code of four jpeg8 builds stores 0x0D before the version error and 0x16 before the struct-size error in jpeg_CreateCompress/Decompress" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "J_MESSAGE_CODE" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:07:21.514Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:48:48.876Z" |
|---|
| summary | "The J_MESSAGE_CODE enum has about 200 codes; the fact lists seven plus JMSG_NOMESSAGE without saying it is a selection: marked incomplete." |
|---|
| changed | |
|---|
|
|
|---|