From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Libjpeg" |
|---|
| claim | "sizeof(jpeg_compress_struct) / sizeof(jpeg_decompress_struct), the third argument of jpeg_CreateCompress/jpeg_CreateDecompress (second argument 62, 70 or 80), identify the API level and ABI of any libjpeg caller: API 62: Win64 504/600, LP64 520/632, Win32 360/432, Win32 with int boolean 376/464, i386 Linux 372/464; API 70: Win64 552/608, LP64 568/640, Win32 408/432, i386 Linux 416/468; API 80: Win64 568/624, LP64 584/656, Win32 416/448, Win32 with int boolean 432/488, i386 Linux 428/484 (Windows rows assume the stock unsigned-char boolean)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libjpeg" |
|---|
| observed_in | | "Library:Libjpeg-turbo" |
| "Win64 API 80 (568/624): Pillow 12.3.0, PHP 8.3.30 php_gd.dll, Blender 5.2 blender.exe and openimageio.dll" |
| "x86 API 62 with int boolean (376/464): SkiaSharp libSkiaSharp.dll" |
|
|---|
|
|---|
| data | | method | "struct size immediates at jpeg_CreateCompress/Decompress call sites and in their checks" |
|---|
| indicator | "(version, size) argument pairs, e.g. x64 'mov edx, 50h; mov r8d, 270h', x86 'push 1D0h; push 3Eh'" |
|---|
| table | | api | "62" |
|---|
| abi | "Win64 (boolean uchar)" |
|---|
| compress | 504 |
|---|
| decompress | 600 |
|---|
|
| api | "62" |
|---|
| abi | "LP64 / Win64 with int boolean" |
|---|
| compress | 520 |
|---|
| decompress | 632 |
|---|
|
| api | "62" |
|---|
| abi | "Win32 (boolean uchar)" |
|---|
| compress | 360 |
|---|
| decompress | 432 |
|---|
|
| api | "62" |
|---|
| abi | "Win32 with int boolean, ARM32 EABI" |
|---|
| compress | 376 |
|---|
| decompress | 464 |
|---|
|
| api | "62" |
|---|
| abi | "i386 SysV" |
|---|
| compress | 372 |
|---|
| decompress | 464 |
|---|
|
| api | "70" |
|---|
| abi | "Win64 (boolean uchar)" |
|---|
| compress | 552 |
|---|
| decompress | 608 |
|---|
|
| api | "70" |
|---|
| abi | "LP64" |
|---|
| compress | 568 |
|---|
| decompress | 640 |
|---|
|
| api | "70" |
|---|
| abi | "Win32 (boolean uchar)" |
|---|
| compress | 408 |
|---|
| decompress | 432 |
|---|
|
| api | "70" |
|---|
| abi | "i386 SysV" |
|---|
| compress | 416 |
|---|
| decompress | 468 |
|---|
|
| api | "80" |
|---|
| abi | "Win64 (boolean uchar)" |
|---|
| compress | 568 |
|---|
| decompress | 624 |
|---|
|
| api | "80" |
|---|
| abi | "LP64 / Win64 with int boolean" |
|---|
| compress | 584 |
|---|
| decompress | 656 |
|---|
|
| api | "80" |
|---|
| abi | "Win32 (boolean uchar)" |
|---|
| compress | 416 |
|---|
| decompress | 448 |
|---|
|
| api | "80" |
|---|
| abi | "Win32 with int boolean, ARM32 EABI" |
|---|
| compress | 432 |
|---|
| decompress | 488 |
|---|
|
| api | "80" |
|---|
| abi | "i386 SysV" |
|---|
| compress | 428 |
|---|
| decompress | 484 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct jpeg_compress_struct (from line 345) and struct jpeg_decompress_struct (523-770) with #if JPEG_LIB_VERSION >= 70 / >= 80 members; jpeg_common_fields (318-324)" |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "src/jpeglib.h" |
|---|
| lines | "318-770" |
|---|
|
| type | "comparison" |
|---|
| detail | "Computed with Code:Libjpeg/structsize from jpeglib.h of libjpeg-turbo 2.1.0, v3.1.4.1, 3.2.0 and main (identical) and IJG jpeg-6b (same 62 rows)" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Win64 API 80: 'mov edx, 50h; mov r8d, 270h' / '238h' at callers and 'cmp rbx, 270h' in the library (four builds). x86 API 62, Chromium copy in SkiaSharp: '68 D0 01 00 00 6A 3E 51 E8' (push 1D0h; push 3Eh; push ecx; call) and 'push 178h; push 3Eh' for compress; library check 'cmp edi, 1D0h; jz; mov dword [eax+14h], 15h'" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Struct sizes by API level and ABI" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:17:51.493Z" |
|---|
| verifications | |
|---|