From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Stb" |
|---|
| claim | "A binary containing stb_image holds its short stbi__err texts (bad png sig, first not IHDR, multiple IHDR, no SOI, no SOF, bad huffman code, unknown image type, outofmem, bad zlib header, zlib corrupt ...) unless STBI_NO_FAILURE_STRINGS is defined; the long texts (Corrupt JPEG, Corrupt PNG, Out of memory) exist instead only when STBI_FAILURE_USERMSG is defined. The PNG and JPEG strings are present only if that decoder is compiled in (STBI_NO_PNG, STBI_NO_JPEG and STBI_ONLY_* remove them), and the strings are also found in other libraries that copy stb_image, such as stb_image forks bundled in game engines and GUI toolkits." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Stb" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "string" |
|---|
| indicator | "bad png sig; first not IHDR; multiple IHDR; no SOI; no SOF; bad huffman code; unknown image type; zlib corrupt; bad zlib header; outofmem" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "stbi__err(x,y) selects 0 / y / x by STBI_NO_FAILURE_STRINGS / STBI_FAILURE_USERMSG; strings gathered from all stbi__err("...") calls" |
|---|
| repo | "https://github.com/nothings/stb" |
|---|
| commit | "2c980bb59875b0d32144a71867fbdebb2f77cd20" |
|---|
| path | "stb_image.h" |
|---|
| lines | "1091-1096" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "stb_image failure reason strings" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T14:57:05.396Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:52:11.105Z" |
|---|
| result | "confirmed" |
|---|
| method | "Re-checked the last correction: stb_image.h at 2c980bb: stbi__err macro lines 1091-1096 as described; all quoted texts (bad png sig, first not IHDR, multiple IHDR, no SOI, no SOF, bad huffman code, unknown image type, outofmem, bad zlib header, zlib corrupt) occur in stbi__err calls; Corrupt PNG/JPEG and Out of memory exist as second arguments. Correction was right." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T03:36:02.242Z" |
|---|
| summary | "Re-read stb_image.h: the strings come from decoder code that STBI_NO_PNG, STBI_NO_JPEG and STBI_ONLY_* also remove; checked all quoted texts exist (bad png sig, first not IHDR, multiple IHDR, no…" |
|---|
| changed | |
|---|
|
|
|---|