From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:Libpng" |
|---|
| claim | "libpng 1.6.0+ (simplified API) has png_sRGB_table[256], a u16 table that starts 0, 20, 40, 60, 80, 99, 119, 139, 159, 179, 199, 219, 241, 264, 288, 313; byte-identical from 1.6.0 to the 1.8 branch. Little-endian bytes below; on big-endian targets swap each pair." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libpng" |
|---|
| observed_in | | "VLC libpng_plugin.dll (libpng 1.6.50, MinGW GCC, x64, static)" |
| "Steam libpng16-16.dll (libpng 1.6.58, MSVC 14.44, x64)" |
| "PHP 8.3.30 php_gd.dll (libpng 1.6.34, MSVC 14.29, x64, static)" |
|
|---|
|
|---|
| data | | pattern | "00 00 14 00 28 00 3C 00 50 00 63 00 77 00 8B 00 9F 00 B3 00 C7 00 DB 00 F1 00 08 01 20 01 39 01" |
|---|
| matches | "png_sRGB_table (png.c, libpng 1.6.0+)" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "const png_uint_16 png_sRGB_table[256] = { 0,20,40,60,80,99,119,139, 159,179,199,219,241,264,288,313, ..." |
|---|
| repo | "https://github.com/pnggroup/libpng" |
|---|
| commit | "cd952f49f95bb27154ae77dbb103032d95f6e580" |
|---|
| path | "png.c" |
|---|
| lines | "3810-3845" |
|---|
|
| type | "comparison" |
|---|
| detail | "Table text hashed at tags v1.6.0, v1.6.34, v1.6.59 and branch libpng18: identical" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "pngscan (the wiki's Code:Libpng/pngscan) on three Windows x64 builds: VLC libpng_plugin.dll 1.6.50 (MinGW), Steam libpng16-16.dll 1.6.58 (MSVC DLL), PHP 8.3.30 php_gd.dll 1.6.34 (MSVC static); not found in python312.dll or git.exe." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "png_sRGB_table start" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T08:50:44.849Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:17:36.953Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read png.c at cd952f49 line 3810: png_sRGB_table[256] starts 0,20,40,60,80,99,119,139,159,179,199,219,241,264,288,313; parsed the array and compared the LE uint16 bytes with the pattern: identical." |
|---|
|
|
|---|