From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Libjpeg" |
|---|
| claim | "Every libjpeg-family build (IJG 6b-9f, libjpeg-turbo) contains the standard message table jpeg_std_message_table from jerror.c; its texts identify the library even in stripped static builds. The most specific ones are listed here; entry 0 is "Bogus message code %d". 'Sorry, arithmetic coding is not implemented' exists only in API-6b builds." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libjpeg" |
|---|
| observed_in | | "Library:Libjpeg-turbo" |
| "Pillow 12.3.0 _imaging.cp311-win_amd64.pyd" |
| "PHP 8.3.30 php_gd.dll" |
| "Blender 5.2 blender.exe and openimageio.dll" |
| "SkiaSharp libSkiaSharp.dll (x86)" |
|
|---|
|
|---|
| data | | method | "string search" |
|---|
| indicator | "message-table texts" |
|---|
| table | | string | "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u" |
|---|
| code | "JERR_BAD_STRUCT_SIZE" |
|---|
|
| string | "Wrong JPEG library version: library is %d, caller expects %d" |
|---|
| code | "JERR_BAD_LIB_VERSION" |
|---|
|
| string | "Not a JPEG file: starts with 0x%02x 0x%02x" |
|---|
| code | "JERR_NO_SOI" |
|---|
|
| string | "Improper call to JPEG library in state %d" |
|---|
| code | "JERR_BAD_STATE" |
|---|
|
| string | "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x" |
|---|
| code | "JWRN_EXTRANEOUS_DATA" |
|---|
|
| string | "Premature end of JPEG file" |
|---|
| code | "JWRN_JPEG_EOF" |
|---|
|
| string | "Unsupported JPEG process: SOF type 0x%02x" |
|---|
| code | "JERR_SOF_UNSUPPORTED" |
|---|
|
| string | "Bogus message code %d" |
|---|
| code | "JMSG_NOMESSAGE (entry 0)" |
|---|
|
| string | "Sorry, arithmetic coding is not implemented" |
|---|
| code | "JERR_ARITH_NOTIMPL (API 6b only)" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "JMESSAGE(...) list" |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "src/jerror.h" |
|---|
| lines | "45-216" |
|---|
|
| type | "comparison" |
|---|
| detail | "Same texts in jerror.h at IJG tags jpeg-6b, jpeg-8d and jpeg-9f" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "jpegscan: 9 of these 10 strings in each jpeg8 build (no ARITH_NOTIMPL), all 10 in the jpeg6b SkiaSharp build; none in python312.dll, node.exe or ffmpeg.exe 9.0" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Message table strings" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:07:21.204Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:28:03.285Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/jerror.h at the cited commit: all listed JMESSAGE texts present; JERR_ARITH_NOTIMPL only under JPEG_LIB_VERSION < 70; entry 0 is 'Bogus message code %d'. These texts are shared by every libjpeg-family library (IJG, libjpeg-turbo), so they do not tell which one." |
|---|
|
|
|---|