Skip to content

fix heap overflow in IFF PBM RLE decompression - #161

Merged
danoli3 merged 1 commit into
danoli3:masterfrom
areofyl:fix-iff-pbm-rle-overflow
Oct 14, 2026
Merged

danoli3 merged 1 commit into
danoli3:masterfrom
areofyl:fix-iff-pbm-rle-overflow

Conversation

@areofyl

@areofyl areofyl commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #156

Adds bounds checks inside the RLE inner loops so number_of_bytes_written can't exceed line, and fixes the operator precedence on the line calculation.

@danoli3

danoli3 commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Thanks an issue with 128 == I think I shall fix in follow up

@danoli3
danoli3 merged commit e1105d3 into danoli3:master Oct 14, 2026
37 checks passed
haobinnan pushed a commit to haobinnan/FreeImage that referenced this pull request Oct 31, 2026
The CNA published IDs for the IFF PBM RLE overflow fixed in 3.19.22
(danoli3#156, danoli3#161) and the GIF_PLAYBACK compositing overflow fixed in 3.19.25
(danoli3#183). Credit the reporters, and note that 3.19.25 only added a RAS
regression test: the RAS fix shipped in 3.19.14 (d474400) under
CVE-2024-28578 and CVE-2024-28580.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heap buffer overflow in IFF PBM RLE decompression (PluginIFF.cpp)

2 participants